I am using visual studio 2010 express but i wonder how can i change startup form when the program runs as i have multiple form within my application. I thought of doing so but i figured out that every form i am creating uses the same namespace. Please help me.
Application. Run(new Form1()); This line shows Form1. You can change it to do whatever you want.
1) Double-click on My Project under the project in Solution Explorer. 2) Click the Application tab. 3) Set the Startup form.
Look in Program.cs
in the Main
function for something like this
Application.Run(new MyForm());
Change MyForm
to your other form.
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