ramyar Posted October 25, 2002 Posted October 25, 2002 Hi, When I use me.close() . It stops the running application, instead of closing the form. frmMenu.Show() Me.Close() The above code does not display the frmMenu Form, instead it closes the application when the Me.Close() is executed Thanks Quote
Leaders quwiltw Posted October 25, 2002 Leaders Posted October 25, 2002 See if this thread helps... http://www.visualbasicforum.com/showthread.php?s=&threadid=37157 Quote --tim
*Gurus* divil Posted October 25, 2002 *Gurus* Posted October 25, 2002 One of the overloads of the Application.Run method takes no parameters, and creates a message loop not tied to any form. You should create a sub main, and show your first form before calling Application.Run(). You'll need to call Application.Exit() to shut down the message pump manually though. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
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.