Visual Studio 17 - VB应用程序 - 主要表单无法识别 [英] Visual Studio 17 - VB application - main form not being recognized
问题描述
我有一个VB应用程序,我一直在Visual Studio 17中工作,有两种形式。 它已经工作好几天了,今天突然间,我的主要表单似乎不再包含在解决方案中。 表格就在那里,以及所有与
相关的代码,但是当我尝试在调试模式下运行它时,我的主表单不会出现,而是第二种表单,它通过Main表单上的菜单项调用而是显示。 如何将表单作为解决方案的一部分返回并作为主要的
表单处理? 它始终显示在解决方案资源管理器中。
I have a VB application I've been working on in Visual Studio 17, with two forms. It's been working just fine for days and suddenly today, my main form no longer appears to be included in the solution. The form is there, along with all the related code, but when I try to run it in debug mode my main form does not appear, but rather the second form, which is invoked via a menu item on the Main form appears instead. How can I get my form back as part of the solution and treated as the main form? It shows up in Solution Explorer just as it always has.
推荐答案
试试这个:右键单击项目在Solution Explorer中,转到"属性"。在"应用程序"选项卡中,使用"启动表单"框指定主表单。
这篇关于Visual Studio 17 - VB应用程序 - 主要表单无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!