表单损坏,未以“启动表单”显示?
在我的 VS VB.NET 项目中,在属性>应用程序>“启动表单”组合框中,我只看到列出了 2 个表单,而我的应用程序有 6 个表单。这是否意味着某些东西已损坏?
我尝试创建一个新项目,然后仅将旧的 vb 文件复制到这个新项目中。但仍然只有这两个(共 6 个)表单显示在“启动表单”组合框中。
In properites>Application>"Startup form" combobox, in my VS VB.NET project, I see only 2 forms listed, while my application has 6 forms. Does this mean something is corrupt?
I tried to make a new project, then copy only the old vb files into this new project. But still only those two (of 6) forms show up in the "Startup form" combo box.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,这很奇怪。该列表几乎肯定是从项目文件中填充的,
元素应该很重要。但您通过从头开始重新创建项目文件消除了这种可能性。我看不出表单上的属性如何使其从列表中消失。您可以尝试的一件事是使用记事本编辑 My Project\Application.myapp 文件。首先复制解决方案并确保它没有加载到 VS 中。将
元素更改为未列出的表单之一。加载项目并查看项目属性页中显示的内容以及编译时是否有任何问题。Well, that's pretty odd. This list is almost certainly filled from the project file, the
<SubType>
element should be significant. But you eliminated that possibility by recreating the project file from scratch. I can't see how a property on a form would make it disappear from the list.One thing you could try is editing the My Project\Application.myapp file with Notepad. Copy the solution first and make sure it isn't loaded in VS. Change the
<MainForm>
element to one of the forms that isn't listed. Load the project and see what is shown in the project property page and if anything breaks when you compile it.