开发者

Changing main form

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.

Changing main form


Look in your program.cs file and change it where it says where it says Application.Run(new OldForm());

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜