Application.Run creates a message pump to passed form, if you close it to
display a new one , windows messages will be sent to a window that no longer
exists that's why your app shuts down, to fix, just hide main form instaed
of closing it.
HTH
--
Corrado Cavalli [Microsoft MVP]
UGIdotNET - http://www.ugidotnet.org