Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
663 views
in Technique[技术] by (71.8m points)

visual studio 2010 - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

Application.Run(new MyForm());

Change MyForm to your other form.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...