How can I set a form to be the default when the program starts?
Loading
How can I set a form to be the default when the program starts?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Jun 18, 2007, 8:55 AM
If you include a line like this is your Main() method:
Application.Run(new Form1());
then Form1 will be your 'main' form, the above code will make it visible and start the windows message loop. Closing the main form will close all other forms as well, stop the message loop and exit the entire application.
Is this what you meant by setting a form as the default, Drew?