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
Sam HobbsPosted Jan 27, 2011, 1:12 PM
Suthish NairPosted Jan 27, 2011, 11:13 AM
Mamta MPosted Jan 27, 2011, 5:34 AM
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.
GaryPosted Jan 26, 2011, 6:59 AM
Thanks for your replies. It worked perfectly! Yes, I did mean Startup Object!
Thanks again
Sam HobbsPosted Jan 25, 2011, 3:12 PM
Sam HobbsPosted Jan 25, 2011, 1:47 PM
The Form1 is the initial form and the application will exit when the form is closed.
Mamta MPosted Jan 25, 2011, 3:18 AM