Hello,
I have several forms in my application, but when I run my application a blank form appears. I haven't found a way of determining how I choose what the default form to load is when the application is run. I could do it in Visual Studio 2005, but need to do it in Visual Studio 2010.
Thanks
Loading

Mamta MRank #268 · 9.4K reputationPosted Jan 24, 2011, 10:18 PM EST
Sam HobbsRank #107 · 20.5K reputationPosted Jan 25, 2011, 8:47 AM EST
The Form1 is the initial form and the application will exit when the form is closed.
Sam HobbsRank #107 · 20.5K reputationPosted Jan 25, 2011, 10:12 AM EST
Gary15 reputationPosted Jan 26, 2011, 1:59 AM EST
Thanks for your replies. It worked perfectly! Yes, I did mean Startup Object!
Thanks again
Mamta MRank #268 · 9.4K reputationPosted Jan 27, 2011, 12:34 AM EST
The Application.Run which you mention is in fact present in the Main method in Program.cs.
Yes, in my answer, I meant Startup object, and not Startup Project which I typed out in a hurry.
So the Startup object needs to be set in the Project properties, to point to the class which holds the Main, which in this case will be Program.cs.
Suthish NairRank #92 · 22.8K reputationPosted Jan 27, 2011, 6:13 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Jan 27, 2011, 8:12 AM EST