如何在Visual Studio 2010中更改默认窗口窗体? [英] How to change the default window form in Visual Studio 2010?

查看:449
本文介绍了如何在Visual Studio 2010中更改默认窗口窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个项目。我的项目有三种窗口形式,分别是登录表单,注册表单和欢迎页面。但不幸的是我用欢迎页面开始我的项目,然后我添加了其他表格。这里只发生了问题。当我调试它直接显示欢迎表格。如何更改表单的顺序。我希望订购像登录表格然后欢迎表格.....

谢谢大家.....

I am developing one project. My project has three window forms respectively login form, register form and welcome page. but unfortunately i started my project with welcome page then i added other forms. here only problem occurred. when i debug it directly showing welcome form. How to change the order of the forms. I want order like login form then welcome form.....
Thank You Everyone.....

推荐答案

在这里你去 - 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 :)


这篇关于如何在Visual Studio 2010中更改默认窗口窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆