How can I set a form to be the default when the program starts?
How can I set a form as the default when the program is started?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AlanRank #669 · 3.6K reputationPosted Jun 18, 2007, 4:55 AM EDT
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?