|
-
Dec 9th, 2009, 08:09 PM
#1
Thread Starter
New Member
Switching between forms
Hello I'm pretty new at visual basic and I can't seem to figure out how to switch between forms.. I want to be able to click a Next button and proceed to my other form. any helps or hints would be appreciated.
-
Dec 9th, 2009, 08:13 PM
#2
Member
Re: Switching between forms
Put this into the Command button:
replace formname with the name of that form.
-
Dec 9th, 2009, 08:16 PM
#3
Thread Starter
New Member
Re: Switching between forms
-
Dec 9th, 2009, 09:16 PM
#4
Thread Starter
New Member
Re: Switching between forms
Well now i have another question I want the other form to close when the other opens..
I figure you would just say Form1.Close() or Me.Close() but this closes all the forms.. how can i change that
-
Dec 9th, 2009, 09:18 PM
#5
Member
Re: Switching between forms
-
Dec 10th, 2009, 07:02 AM
#6
Re: Switching between forms
That will not close the form, but simply hide it - which uses (and perhaps wastes) memory, and may stop the program from closing when it is finished.
Unless you have a particular reason for keeping it open, you should unload it:
or:
..and that should be followed by Exit Sub (or Exit Function etc as apt) so that you don't accidentally re-load it.
 Originally Posted by kel_e
I figure you would just say Form1.Close() or Me.Close() but this closes all the forms.. how can i change that
There is no pre-made .Close method, so that is something you have written yourself.
-
Dec 10th, 2009, 07:35 AM
#7
Re: Switching between forms
Why not stay with just one form and switch between frames on that form (like a wizard does)?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|