Staredit Network

Staredit Network -> Computers and Technical -> VB HELP
Report, edit, etc...Posted by PHI on 2005-11-17 at 10:56:21
legacy i herd ur good at visual basic
so i need sum help
whats the code for switching forms
like click a button and open a new form
Report, edit, etc...Posted by notnuclearrabbit on 2005-11-17 at 13:41:44
[center]Wrong forum kid. If you're directing this at LW, it shoulda been a PM.
Sorry, but I don't know VB, so can't help you there.
[/center]
Report, edit, etc...Posted by BeeR_KeG on 2005-11-17 at 14:23:59
>Moved to Programming
Report, edit, etc...Posted by Staredit.Net Essence on 2005-11-17 at 15:02:00
You add a new form. Then add this code. Im not sure about the .hide . I havent done vb in a while.

CODE
form1.hide
form2.show
Report, edit, etc...Posted by ToFu on 2005-11-18 at 09:49:40
Im Just starting VB but i not really good at it pinch.gif
Report, edit, etc...Posted by LegacyWeapon on 2005-11-19 at 00:55:41
Happy Programming:
http://www.staredit.net/index.php?showtopi...ndpost&p=316473
Report, edit, etc...Posted by MindArchon on 2005-11-19 at 00:55:46
QUOTE(Gradius @ Nov 17 2005, 01:02 PM)
You add a new form.  Then add this code.  Im not sure about the .hide .  I havent done vb in a while.

CODE
form1.hide
form2.show

[right][snapback]357916[/snapback][/right]


Don't use hide. Hide just makes the form invisible, but still runs it in the memory.

Use Unload Form1 instead.
Report, edit, etc...Posted by LegacyWeapon on 2005-11-19 at 00:59:56
I'd show before unloading. If Form1 is the only thing running and you unload it first, the program will close.
Report, edit, etc...Posted by DT_Battlekruser on 2005-11-19 at 11:11:40
Does form1.unload remove any changed data about the form if you try to bring it back?
Report, edit, etc...Posted by LegacyWeapon on 2005-11-19 at 12:53:09
Unload Form1 sets all variables you declared in that form to "Nothing" and frees up RAM.

Reloading the form will just load everything from default.
Report, edit, etc...Posted by DT_Battlekruser on 2005-11-19 at 13:19:11
That's what I thought.
Next Page (1)