C
Cave
Hi
I am just starting to learn visual basic .net and I have a really simple
question.
In vb6, when I wanted to unload one form and show another, I would just type
form2.show
unload form1
In vb.net, How do you show one form and close the original?
I have tried
Dim form2 as new form2
form2.show
This shows the second form, but how do I unload the first? If I add
me.close
onto the two lines of code above, the whole program ends! (not just the
original form closes)
Thanks in advance for any help.
I am just starting to learn visual basic .net and I have a really simple
question.
In vb6, when I wanted to unload one form and show another, I would just type
form2.show
unload form1
In vb.net, How do you show one form and close the original?
I have tried
Dim form2 as new form2
form2.show
This shows the second form, but how do I unload the first? If I add
me.close
onto the two lines of code above, the whole program ends! (not just the
original form closes)
Thanks in advance for any help.