Guest gjnave Posted August 23, 2002 Posted August 23, 2002 Lately (it didn't seem to do this before), when i try to open a form from within a form and then close the original form, both forms close and the program shuts down. Is this a glitch in .Net? here's the code using two forms (startForm and goForm) (StartForm) dim gForm as new goForm gForm.show me.close ** At which point both forms crash. Am I missing something stupid? thanks Quote
Leaders quwiltw Posted August 23, 2002 Leaders Posted August 23, 2002 My guess is that it's becuase startForm is your startup object and thus your application. It seems to make sense that if that were closed all other forms would also be closed. On the other hand, if you did opened yet another form from goForm it should behave as you are expecting. Quote --tim
*Gurus* Derek Stone Posted August 23, 2002 *Gurus* Posted August 23, 2002 quwiltw is correct. Once you stop the message pump of the main window in your application the application will terminate under most circumstances. The easy solution to this is to hide the window instead of closing it. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.