Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I do as follows

VB
form2.show()
me.close()


The problem is that the application is closed
Posted
Updated 25-Dec-11 6:03am
v2

Use
VB
me.Hide()
instead of
VB
me.Close()
 
Share this answer
 
Start here:

http://www.getdotnetcode.com/GdncStore/free/Articles/VB%20NET%20Sub%20Main%20Procedure.htm[^]

And then look at this CodeProject tip/trick (it's in C#, but you should be able to translate easily enough):

Multiple Subsequent "Main" Forms in C# Apps[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900