I am new to this programming stuff, first off, im trying to figure out how to have your initial form close once the user opens the second form. so far all i have is form.show, but that just opens a second form, i want it to close the first form as well. any ideas?
Close a form when opening another
Collapse
X
-
Form2.ShowOriginally posted by rryan2I am new to this programming stuff, first off, im trying to figure out how to have your initial form close once the user opens the second form. so far all i have is form.show, but that just opens a second form, i want it to close the first form as well. any ideas?
Unload Form1
(or Form1.Hide) -
It may well go through Form2's Load event before continuing with the code that invoked Form2. I'm not too sure about the exact sequence there. But it will certainly go ahead and do the Unload or Hide straight after that. Unless you show Form2 modally, in which case control won't return to this code until Form2 is unloaded or (I think) hidden.Originally posted by vdraceilthis code will load form2 and go on with form2's load event..i dont think it'll unload form1.Its better to unload form1 in form2's load event.Comment
Comment