开发者

How might I change the Form loading at start-up to another form?

开发者 https://www.devze.com 2022-12-11 10:26 出处:网络
By default when I run my project, it loads form1, but I want to change it such that when it loads the Pro开发者_高级运维ject it opens form2 instead. How could I accomplish this?Go to your Program.cs f

By default when I run my project, it loads form1, but I want to change it such that when it loads the Pro开发者_高级运维ject it opens form2 instead. How could I accomplish this?


Go to your Program.cs file and change the form class:

Application.Run(new Form1());

Change to:

Application.Run(new Form2());
0

精彩评论

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