Moving Things Between Frames
How do i move for instance a label between 2 frames? i tried with label1.container but that didnt work very well, so i guess thats not what its used for or im doing something else wrong.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Things And Deselecting Things.
Okay, I have two questions. First I'll give you the noobish one. How do you deselect something like a command button so it's not highlighted? I also have a problem with my end of the year project I asked for help with a while ago. I'm trying to make it so that when you click a button, the notes on a measure (of music) move down to the next set of lines instead of going to the right off the screen. It's hard to explain, but here's the code for the command button:
VB Code:
Private Sub Command1_Click()intOMG = intOMG + 1If intOMG > 8 Then Command1.Enabled = FalseEnd IfLine1(Line1.lbound + intOMG).Visible = TrueLine2(Line2.lbound + intOMG).Visible = TrueLine3(Line3.lbound + intOMG).Visible = TrueLine4(Line4.lbound + intOMG).Visible = TrueLine5(Line5.lbound + intOMG).Visible = True End Sub
Here's a picture of the form, which is probably the best way I can show you:
http://img.photobucket.com/albums/v6...r/untitled.jpg
Also, how can I make that scrollbar work? This should be my last question about my project (seeing as it's due tomorrow), so thanks to those who help.
Strange Things With Frames
I have a problem in VB6, in that a frame on a form appears OK in 'design mode', but however drops down by about 1/4 inch and covers up the status bar, when I try to 'run' it. However in compiling the exe the frame is spot on.
Anybody got the same problem, or is it a bug, or what is the fix.
Moving Things*
Ok, i have a shape that moves across the form (looping)
i have a timer that subtracts 10 out of the shape.left every 1 sec. from time to time i want to change the speed of this, like (-20) (-30)
etc......
so far i tried the following
Yellow1.Left = Yellow1.Left & Text1.Text
Obviously this did Not work, lol.
Does anyone have any better suggestions on accomplishing this? Thanks
Moving Things Into Tabs
i have a bunch of labels and text boxes that are in a form. i just discovered the tab function and when i try to move them into the tab they just end up going underneith. how do u get them to go on the tab?
Help With Moving Things In Arrays
Hey people.
Here is my problem.
I have an array of a size 10. Anyway i want to know how to delete and item in the array and move every item in the array down one so that it fills the empty space. So that I have no empty spaces in the middle of my array only at the end of it.
I have puzzled on it for ages.
Any help would be aprreciated.
Moving Things From One Listview To Another
Hey guys I have one listview called report on a form call antivirus. This listview has checkboxes.
I have another listview with no check boxes on a form call resuls.
What I would like to do is when an item or items is checked, whatever is in the first column of the report listview on the antivirus form goes in the results listview on the resuls form. The same as the second column, I would like that repeated as well.
But the twist is if the user checks a problem and then presses the delete button. I would like the 3rd column of the results listview on the resuls form to say "Deleted" for that checked item.
OR if the user checks a problem and presses ignore then it would just say Ignored by the item in the 3rd column.
Can anyone tell me how I could do all that?
Thanks!
Need Help With Timers And Moving Things
I'm trying to use a timer that every time it refreshes, it will move the image up a little till a certian point then move it back this is the basic part if some one can answer this for me then i'll ask my next question.
Moving Things From A Listview To A Textbox?
Hey guys I have a listview called report and it has check boxes. I have another form called form2 with a text2.text.
Is there a way when I check one item and press a button that checked item goes in the text2 of the form2?
Its just the item from the first column of the report listivew.
Thanks!
Using .move For Moving Frames, Passing Value.
Hi guys, got a small and hopefully easy problem for you to help me with.
I am passing in a number (integer) to a sub that should then move a frame number to coords, depending on what value is passed in.
E.g if the number 2 was passed in then fraQuestion2 would (or should be) moved to the proper coords. However im having a few problems with this, probably a syntax one.
Code:
fraQuestion(Q + 1).Move Val(480), Val(480)
Even using just Q doesn't work and i've tried
Code:
fraQuestionQ.Move Val(480), Val(480)
and
Code:
fraQuestion.Q.Move Val(480), Val(480)
Can someone point me in the right direction? Cheers
[Solved] : Moving Controls In Frames
Hello,
I have a tabstrip, in which i got a DataGrid placed inside a frame. I also have a listview that i display in ButtonClick event of DataGrid.
This ListView is placed at the bottom of the column of the DataGrid in which user clicked the button.
Problem is that when listview control is displayed while at last row (this row is close to border of the frame), part of a listview hides away in the Frame control.
If i keep Listview control out of Frame (now only grid is inside Frame), then i can'y find the correct coordinates to place listview at bottom of the Column.
Thanx in anticipation
Aashu
Edited by - sudhanshuXP on 4/28/2005 12:42:43 AM
Moving Already Created And Configured Controls Into Frames/picture Boxes
I'm sure there is a simple way of doing this or a quick fix, but I'm currently struggling. I've made and coded for some controls (pictureboxes that move accross the screen).
However, I now want them to only be visible inside a picture box I have just created. But when run the image just moves behind it. I'm using sprites and the BitBLT method to draw and move my object.
Any suggestions appreciated.
Thanks
How To Make Frames Like Frames In A Web Brower?
is there any controls that I can use to creat frames like those in a web browser? the purpose is to divided a form into several frames, which can be resized, and scrolled when some content is out of view.
thanks
Frames Within Frames (disabled / Enabled)
Hello to all,
I am looking to do 2 things
Question 1
-----------
I want to loop thru a Frame and disable all controls.
Controls can be of any kind of types:
TextBox
ComboBox
ListView
ListBox
Question 2
-----------
I want to loop thru a Frame with sub Frames and disable all controls.
Controls can be of any kind of types:
TextBox
ComboBox
ListView
ListBox
Public Sub CmdDisableFrames_Click
Call EnableFrame frame1,True
end sub
This Code seems to have some kind of problems. It does not do anything
Public Sub EnableFrame(InFrame As Frame, ByVal Flag As Boolean)
'Loop through each control in a frame and enable/disable them.
Dim Contrl As Control
On Error Resume Next 'not all controls have a container property
InFrame.Enabled = Flag
For Each Contrl In InFrame.Parent.Controls
If Contrl.Container.Name = InFrame.Name Then
If (TypeOf Contrl Is Frame) And Not (Contrl.Name = InFrame.Name) Then
EnableFrame Contrl, Flag 'repeat for nested frame
Else
Contrl.Enabled = Flag
End If
End If
Next
End Sub
thanks
Frames, Frames, Frames... *SIGH*
Okay, i hav 2 frames.
Inside frame1 i hav 2 option boxes.
Inside frame2 i hav 11 option boxes.
Seems like the 2 frames are seperated from option boxes. How will i solve this problem? that the 2 frames count as 1 'panel' for optionboxes?
and how can i remove a frame without contents? sending to frontrining to back wont help...
SharQueDo
Code For Moving To The First Blank Cell In A Worksheet; Moving Left,right,up Or Down
I have created an application form as a userform in Excel. I need to send the data entered into my text boxes when the program runs to separate excel cells in a worksheet.
My problem is I can use code that will send the textbox entry to a specific cell eg. If my textbox is named Surname I can say
range("a5").value = surname but if I do that when I run the programme to enter the next record for someone else the first record will be overwritten.
I NEED A CODE LINE THAT WILL TAKE ME TO THE FIRST EMPTY CELL AND ALLOW ME TO MOVE DOWN OR TO THE LEFT OR TO THE RIGHT
Transparent Frames Inside Transparent Frames
Hey
well i need transparent frames for my program or u cant see the back ground and it looks crap i also need them to group things together so when i make somthign invisible it takes the everything in the frame
well i want to put a transparent frame inside a transparents frame and it doesnt work the inside frame is opaque instead of transparent and it is set to transparent it works sometimes pls
help
thanks Trav
Moving Balls To Moving Images??
Please take a look at this as it is related to my question
Thread
is it possible for the create images to be an image type that is already drawn?
2 Things
Didn't want to make two posts, but I have 2 questions:
How do I make my program check for a certain file, create it if it isn't there, if it is then add the specified text to the bottom?
Second question:
How do I make tabbed panels?
Thanks in advance
All The Things...
hi, i'm new to vb and i'm new here too.. :-)
i know some questions a lot of people are asking, but i'm asking too.. lol lol, so here goes, i know you all !experts! out will help
Custom-Shaped:
1) How do I make 'Not only it is custom-shaped form' but the edges are
smooth? Is it something like Anti-Aliasing? I saw Winamp3 with this feature.
2) So i mean 'not only it is custom-shaped' but the edges are 'smooth', is it doned by using PNG-24?
Flash:
1) How to integrate Flash into VB?
Others:
1) How does DirectX helps with transparency?
2) How do i deal with animation? Something like 'Ashampoo Media Player' where the 'blue liquid' just flows.. (i think)
I'm not good at VB so i hope everyone can help! :-) Thnx and much thnx!
Two Things At Once?
I have my game loop set out something like this.
Code:
While brunning
DoEvents
Cls
Call Draw_Screen(Me)
Call Artificial_Intelligence(Me)
Call Collision_Detection(Me)
Call Update_Positions(Me)
Wend
and within my AI sub i have these.
Code:
Call AILongVision(FrmUser)
Call AIThreat(FrmUser)
Call AIShortVision(FrmUser)
Call AIWorkPath(FrmUser)
and within my AILongVision sub i have the code that works out my AI's long vision and all that stuff. and when something within the sub is triggered it calls another sub which draws some stuff on the screen using a while loop.
the problem is that when this loop gets called the whole program freezes until this loop finishes. how do i let it keep rendering my game while doing this loop?
About Some Things...
Hello, again my post got deleted or something, im making a shape shootout game with of corse shapes. i have two squares that are going to shoot lines at eachother, its really basic. but now to my question, i want to know how to make it so if the red line touches the shape in anyway then the shape is no longer able to move and it dissapears. can you help?
Using My Db For Other Things
Hi everybody,
I''m making a program in which you can print document but some documents require to be printen with Word. My Database (an access file)
is used with this. The word document requires data from the database how can i open my word file in word with al the data filled in ?
The Best Way To Do Things?
Alright first thanks to everyone who has chosen to help me on my quest to make things more simple K.I.S.S. Anyway, This is a question I hope to dialog on. I'm trying to speed up a proposal process by adding access database support to an excel template. I need to dump some data across several cells depending on the criteria selected in one of two dropdowns in excel. So far I'm querying the DB with ADO and dumping the results into a xlVeryhidden sheet. My logic so far is to have two tables tblBrand and tblProduct. Table brand looks like this:
brand_ID, brand_name
1.............BrandX
2.............BrandY
3.............BrandZ
4................
Table Products looks lilke this:
product_id, brand_ID, prod_model, prod_desc, prod_price, prod_retail
1...............2.............ABC123.......cool.........$1500........$ 2200
2...............2.............ABC333.......cooler......$1800........$2 500
3...............1.............XYZ454.......Sweet......$2000........$30 00
4...............4...................
I'm going to populate the first dropdown with the info from tblBrand. This info is being dumped into the hidden sheet everytime the template is opened to avoid having to worry about an inaccurate DB population. I hope to use the dump to fill the dropdown. If the person choses brandX from the dropdown I would like to requery the DB to select all the products with the corresponding Brand_ID like this:
Code:
dim Sql as string
dim BrandID as integer
BrandID = 'First dropdown brand_id value
Sql = "SELECT * FROM tblProducts WHERE brand_ID = "' & BrandID & '""
Hope this Makes sense so far. I program in PHP originally and can do this kind of thing in PHP any day of the week but I don't know VB/VBA that well So... First Question Is this possible?Second Question Assuming first question works. Am I on track with my thought? How would you do it?
Not Sure How To Set Things...
Okay, here's what's going down.... I want to set a small box down into my
DirectDraw screen at 1024x768, and I can't seem to get this done... I have the "FullScreen" initialization and I want it to display, something.... maybe a box rotating 360-Degrees... If you can help, please do... Thanx!!!
Little Things In VBA :)
Hi all! While working with VBA I stumbled on couple things that I didnt like and couldnt figure way around
1. I created an application in VBA... so when I start it, the Exel workbook loads my first userform. My problem is that this workbook is always in background... its not like workbook has a .Hide method How do I hide it?
2. Is there an elegant way to add 1 to variable? (like i++ in C/C++)
3. Is there any way to export VBA application into independant .exe file?
4. How to get out from While ... Wend?
I cant think of anything else right now... maybe ill remember later
Any help is always greatly appritiated. You guys are real pro's
Two Things
1) Is there any way to change the caption of a command button or is putting a border on a label the only way?
2) How can I take away the top bar, or more importantly, the minimize, restore, and exit buttons in the top right hand corner? The exit button at the top doesn't fully exit my form, mazimizing it makes the program look all weird, and the minimize isn't needed for me.
Thanks!
2 Things...
I'm sure the answers to these questions are here somewhere, but I can't find them... So Here Goes.
How do I make a Cancel Button interrupt a program, while it is querying a remote machine?
And
How can I make the Return Key action the program after entering text in a field? I have to click a button and would love the Return key to do this.
Thanks.
2 Things
OK, 2 things,
1 How do you use the Rnd funtion?
2 How do you create global variables?
3 Things
I am nearly at the end of my current project now, however i have a few remaining problems that i just cant work out.
1. Multiline textboxes - IF i have a scrollbar, they always seem to stay scrolled to the top whenever the text changes. Is there a way to keep the text box scrolled down to show the last entry into it?
2. Automatically detecting if they have disconnected from the internet- Is this possible?
3. An annoying little problem using the shell command. -
My app is a program that runs along side a game, however if i use thr shell command then in the game some things (like key mapping, mouse sensitivity etc) are reset to the default.
Im sure its a prob with using shell() because if i run the game manually by clicking the exe there is no problem - even when the app is running. Any possible ideas to this?
Once again thanks in advance.. im so close to finishing yet cant release it until these little niggles are sorted out.
David
Few Things
how can i make a button open internet explorer?
how can i put the lines in the menu editor like there is in internet explore file thing between save as and page setup
how can i make a *.cur or a *.ico to use as an icon for my program - what program and where can i get it
Two Things.
When I double click on a label, I want to save the name of the label to a variable.
Then I want to use this variable to change several properties of the label, such as caption and background color.
Essentially I'm trying to develop one piece of looping code, instead of pasting and changing the code 42 times for each label and combo box. I declared the variables as label, but I don't know how to get the name from the program.
I tried setting the variable to the label name, just to test the rest of my code...but that wouldn't even work. It said "with object variable or block variable not set" I tried changing the variable type to a string, and it said "invalid qualifier" when I tried to use it as a control name.
Any ideas?
Few Things
Im Pretty New To VB, I have been reading tons of stuff on it and reading this forum has been helpful, but i would like to know a few things.
Im trying to make a unique key for a system that will be unique to that system, so i figured i would encrypt the computer name... but i dont know how to identify the computer name if somebody could help me with that.
And something that may be simple im not sure, how to return a random letter, i know about numbers but not sure about letters.
Any help would be appreciated.
A Few Things I Could Use Some Help With >>;
Well i have a few questions...
I want to have my form/program hold down a key when a check box was ticked. then it would stop when Un-ticked.
Then,
How would I make it so when you click on a menu item it opens up a webpage or an email application to email something/view a website?
Thanks,
Daerd.
How Can I Do These 2 Things...
Totally unrelated but how can i do them...
1. Let my program connect up to the internet and save a file on the site so then they can load it later? This would probably have to include an accounts system.
2. Make it work with a webcam so maybe like one of those webcam games where you can move and then virtual things can bounce off you?
A Few Dll Things...
Gwah... well... im trying to make an anti-software cracking system sorta thinger...
I've got my DLL written with all of its functions... and i was wondering if i could inject the dll into another process (lets say explorer) and then call a function from it? the main thing that i want to see is if its even possible O_o
thanks =]
A Few Things
Ok, I have a few questions, I thought this is the best place to ask, since this place rocks!
Ok, well, First i seen another post like this, bu not sure it it would work, but first I want when my program (Radio program again) opens, It checks right away if theres a connection to the host, If so then it leaves the program be, if it returns that it cant, give a message saying that well it cant like " Sorry, no DJ at this time "
Second, i am going to search the forums and try this one on my own, but if its ewasy tell me, its for adding items to a combo box.
That will about it untill I get this little bit done.
How Can I Do The Following Things
Hello Everybody :
I am a new member here and I really found many important codes and DLL(s) here but I have some questions that I hope I can find the answers of it Here :
Note : I ve searched before writing my topic so please forgive me if I couldnt
find the answers while I was searching :
1 - How can I Insert a PNG Image in VB 6 ? Is there any ocx , code , dll allows me that because
We are all knows that the PNG Image is not available to add in VB 6 ?
2 - Is there any .DLL that allows me to save with all images extensions ?
3 - How can I search for a word in the text in the RichTextFile and make a replace ?
Soooorry for the long questions but i really need the answers
Regards
Black Wolf
Am I Doing Things Right?
Hi fellow VB Gurus,
I'm very new to VB6, but at my new job I have to use it. I'm just wondering if I'm doing things right:
The project I'm working on consists of several subprojects with selfmade ActiveX controls (ocx) or ActiveX exe's. The way my business partners build the whole project is by compiling the changed components and compiling all the components or projects that depend on those components, MANUALLY !?!. My problem is I'm very lazy and I want to make some kind of build script that make the right references automatically so I can compile the project and all subprojects unattended. Is there anybody here who had to build such big projects b4 and who knows a good way to do it nice and quickly? I already know about the command line compilation with the /MAKE argument, but that's all so far. Does VB6 automatically reference the latest version of the ActiveX components? Any other information you can give me?
Thx in advance,
RaKKeR
Its The Little Things That Bug Me !
I've compiled a project that has a magnifying glass as its icon.
The project contains 2 icons (in a resource file), a house and a magnifying glass.
When I go into Project Properties the house icon is displayed ... which is good.
When I compile the project the icon for the .EXE becomes the hourglass icon ... which is bad.
I tried deleting the .EXE and recompiling, thinking it may inherit something ... but no.
I know this is petty .. but its bugging me ....
Why Do M$ Do Things Like This?
Versions 8 ('97) and 9 (2000) of Excel allow the custom number format 0.0kg but in version 10 (2002/XP) you have to format it as 0.0"kg" - why on earth would they change a thing like this, and doesn anyone know a sensible workaround for my VB app that uses Excel objects?
Help With Few Things Please
Hey,there as you can i see im new here,well im making a big prog were you can do afew things, and id like to see the codes for few things!,thanks in advanced
1.changing clock time
2.setting C:/ as a ftp
thanks ppl
3 Things Together
Ok I have 3 text boxes and if any 1 of them at all is blank I want a message box to pop up but how do I make all 3 go together... I tried If Text1.Text & Text2.Text & Text3.Text ="" Then MsgBox but it has to many &'s in it so how do I put them all together for this to work? Thanks for the help guys
<> Two Things
How do I check to see if a variable is not equal to two things, ie:
If xyz <> WhatGoesHere AndHere Then
blah
End If
Thanks
- Jake
2 Things
Do I need the change this (it localisesd menus)?:
Code:
Private Sub Combo1_Change()
Form11.mnufile.Caption = "Le Dossier"
Form11.mnued.Caption = "Éditent"
Form11.mnuhlp.Caption "L'aide"
End Sub
and how would I make theese to codeopieces work on xp, and how do I include xp style controls with a .manifest file, please provide good detailed instructions?
Code:
Private Sub Command10_Click()
Dim notepadexe As Variant
notepadexe = Shell("pbrush.exe")
End Sub
Private Sub Command5_Click()
Dim notepadexe As Variant
notepadexe = Shell("write.exe")
Things With MP3's
I have a program, and when it starts, i want it to play an MP3... Well, at a certain point in the program, i want it to fade out the song in 5 seconds, and at the same time fade in another MP3...
The MP3 wont be finished playing, so i wanna fade out the sound and stop it, but while its fading out i want the other MP3 to fade in while the first one is fading out....
Anybody know how to do this?
Just 2 Things
1. Is there a way of making your program (once an exe file) open when some1 opens a different file?
2. Can you close my documents by clicking a button on the program?
thanx 4 any help
Two VERY Tiy Things
number 1:
how can i make it so when the X in the top right corner is clicked, it HIDES instead of closes?
number 2:
i have an icon in the task bar. how can i make amenu appear when it has been RIGHT CLICKED on.. thanks!
|