Does anybody know how to setup the starting form of a winforms project in Visual Studio 2010? I have ridden to go to Project Properties and change Startup Object, but in dowpdownlist the only options available were "(None)" and "ProjectName.Program.cs". The "program.cs" is my default code file. Please help me. (Im working in C#)
Go to 'Tools' and click on 'Options'. Next, go on the 'Startup' option within the 'Environment' category, and select 'Show Start Page' from the drop down menu.
In your Program.cs, there is line like:
Application.Run(new Form1());
where you can substitute the form you'd like to start. If you change Form1
to another Form class, your project will start with that one.
in visual studio on the menu bar: project > project properties > start up form : select the form within your project that you want to run on start up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With