且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Visual Studio 2010中更改默认窗口窗体?

更新时间:2023-12-06 13:16:16

在这里你去 - MSDN:如何:在Windows应用程序中选择启动表单 [ ^ ]



Google搜索可以为您节省大量时间。 ;)
Here you go - MSDN: How to: Choose the Startup Form in a Windows Application[^]

A Google search would have saved you a lot of time. ;)


在Program.cs文件中尝试这个更改:



Try this in the Program.cs file change this:

[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new login ());
        }





希望有帮助:)



hope it helps :)