I made a project in Visual Studio 2010 (winforms). I made a new Form and I want this new Form to be 开发者_开发知识库main Form of the program. How can I change it?
Open up your Program.cs
file in your visual studio project and just change the reference to your new form.
In the project properties of the startup project, set the Startup Form to your new form.
Look in your program.cs
file and change it where it says where it says Application.Run(new OldForm());
精彩评论