如何在 vb.Net 中设置默认表单?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2370776/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I set the default form in vb.Net?
提问by user225269
How do I set form number four as the default form that will run when I press on f5 in visual studio 2008. Because form 1 will always be the first to start
如何将第 4 个表单设置为在 Visual Studio 2008 中按 f5 时将运行的默认表单。因为表单 1 将始终是第一个启动
回答by Geoff Appleford
- Right-click on your project in solution explorer.
- Choose properties.
- Select the Application Tab.
- Select your form from the dropdown under 'startup form'
- 在解决方案资源管理器中右键单击您的项目。
- 选择属性。
- 选择应用程序选项卡。
- 从“启动表单”下的下拉列表中选择您的表单
回答by Andy Shellam
In the Project Properties, there's a field called "Startup form" - select your form in there.
在项目属性中,有一个名为“启动表单”的字段 - 在其中选择您的表单。
回答by taimoor ali
Right-click your Project within the Solution Explorer. Choose Properties. Select the Web tab on the left-hand side. Under the Start Page section, define the Specific Page you would like to default to when the application is launched. Save your changes.
在解决方案资源管理器中右键单击您的项目。选择属性。选择左侧的 Web 选项卡。在 Start Page 部分下,定义您希望在启动应用程序时默认使用的特定页面。保存您的更改。
回答by taimoor ali
- Right-click your Projectwithin the Solution Explorer.
- Choose Properties.
- Select the Webtab on the left-hand side.
- Under the Start Pagesection, define the Specific Pageyou would like to default to when the application is launched. Save your changes.
- 在解决方案资源管理器中右键单击您的项目。
- 选择属性。
- 选择左侧的Web选项卡。
- 在Start Page部分下,定义您希望在启动应用程序时默认使用的特定页面。保存您的更改。