简体   繁体   中英

Changing startup form in C#

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.

Look in Program.cs in the Main function for something like this

Application.Run(new MyForm());

Change MyForm to your other form.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM