【问题标题】:How might I change the Form loading at start-up to another form?如何将启动时加载的表单更改为另一个表单?
【发布时间】:2009-11-17 11:40:03
【问题描述】:

默认情况下,当我运行我的项目时,它会加载 form1,但我想更改它,以便在加载项目时打开 form2。我怎么能做到这一点?

【问题讨论】:

    标签: c# .net winforms forms


    【解决方案1】:

    转到您的 Program.cs 文件并更改表单类:

    Application.Run(new Form1());
    

    改为:

    Application.Run(new Form2());
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-12-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多