由网友(提笔写忧伤)分享简介:在默认情况下,当我运行我的项目,它加载 Form1中,但我想改变它,这样在加载时打开项目窗口2 代替。我怎么能做到这一点?By default when I run my project, it loads form1, but I want to change it such that when it loads...
在默认情况下,当我运行我的项目,它加载 Form1中
,但我想改变它,这样在加载时打开项目窗口2
代替。我怎么能做到这一点?
By default when I run my project, it loads form1
, but I want to change it such that when it loads the Project it opens form2
instead. How could I accomplish this?
推荐答案
转到您的Program.cs文件并更改窗体类:
Go to your Program.cs file and change the form class:
Application.Run(new Form1());
更改为:
Application.Run(new Form2());
相关推荐
最新文章