How to setup the starting form of a winforms project in Visual Studio 2010

前端 未结 4 1376
别跟我提以往
别跟我提以往 2020-12-03 16:49

Does anybody know how to setup the starting form of a winforms project in Visual Studio 2010? I have ridden to go to Project Properties and change Startup Object, but in dow

4条回答
  •  庸人自扰
    2020-12-03 17:36

    In your Program.cs, there is line like:

    Application.Run(new Form1());
    

    where you can substitute the form you'd like to start. If you change Form1 to another Form class, your project will start with that one.

提交回复
热议问题