Visual Studio无法识别VB表单 [英] Visual Studio not recognizing a VB form

查看:99
本文介绍了Visual Studio无法识别VB表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VB.NET WinForms项目,里面有大约15个表单。当我昨天打开这个项目时,其中一个表单文件没有作为表单打开

(即在解决方案资源管理器中双击它会打开代码文件,而不是

表格设计师)。此外,它似乎没有识别代码

文件....没有概述指标,输入代码文件有

没有Intellisense的东西,和代码没有编译说它没有

识别表单的类。该表格于7月份完成,并且自那以后一直没有编辑过。
。我还尝试从

备份中替换表单文件(.vb和.resx),但它仍然无法识别表单。这可能是

解决方案文件中的一个问题吗?并且有没有办法重建那个或者什么?


感谢您的帮助

Dave Taylor

PERI

I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is
no Intellisense stuff, and the code does not compile saying that it doesnt
recognize the form''s class. The form was completed in July and hasnt been
edited since. I also tried replacing the form file (.vb and .resx) from a
backup and it still does not recognize the form. Could this be an issue in
the solution file? and is there a way to rebuild that or what?

Thanks for any help
Dave Taylor
PERI

推荐答案

" Dave Taylor" <无********** @ processeng.com> schrieb:
"Dave Taylor" <no**********@processeng.com> schrieb:
我有一个VB.NET WinForms项目,里面有大约15个表单。当我昨天打开项目时,其中一个表单文件没有以表格形式打开
(即在解决方案资源管理器中双击它会打开代码文件,而不是表单设计器) 。此外,它似乎没有识别代码
文件....没有概述指标,输入代码文件有
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is




右 - 单击解决方案资源管理器中的文件,然后选择打开方式...。用于Visual Basic的

表格编辑器是否可用?


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



Right-click the file in solution explorer and choose "Open with...". Is the
Forms editor for Visual Basic available there?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


嗨Dave


我在浏览一个尚未添加到
a项目中的文件时看到了这种情况。你有没有尝试过添加|解决方案中的现有项目

资源管理器......?

Nigel


Dave Taylor写道:
Hi Dave

I''ve seen this happen when you are browsing a file that hasn''t been added to
a project. Have you tried doing an Add | Existing Item in Solution
Explorer...?

Nigel

"Dave Taylor" wrote:
我有一个VB.NET WinForms项目,其中包含大约15个表单。当我昨天打开项目时,其中一个表单文件没有以表格形式打开
(即在解决方案资源管理器中双击它会打开代码文件,而不是表单设计器) 。此外,它似乎没有识别代码
文件....没有概述指标,在代码文件中键入没有Intellisense的东西,并且代码不编译说它不
认识表格的'班级。表格于7月份完成,自那以后一直没有编辑过。我还尝试从
备份替换表单文件(.vb和.resx),但仍然无法识别表单。这可能是解决方案文件中的一个问题吗?并且有没有办法重建那个或者什么?

感谢您的帮助

Dave Taylor
PERI
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is
no Intellisense stuff, and the code does not compile saying that it doesnt
recognize the form''s class. The form was completed in July and hasnt been
edited since. I also tried replacing the form file (.vb and .resx) from a
backup and it still does not recognize the form. Could this be an issue in
the solution file? and is there a way to rebuild that or what?

Thanks for any help
Dave Taylor
PERI



感谢您的快速回复


是,Visual Basic表格编辑器(默认)列出...点击它带来

表格的代码,但它似乎不是标准代码

编辑器(即仍然没有轮廓标记,没有智能感知)。另外,我在

上注意到查看代码的上下文菜单。缺少选项,

中菜单部分的唯一选项是View Designer。


我也试过Open With ... Visual Basic编辑并给出相同的

结果....看起来像代码编辑器的东西但不是。


它只是这一个形式..所有其他表格按预期工作。


我也试图从项目中排除然后添加现有项目...相同

结果。 ...


谢谢


戴夫泰勒

PERI


Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

news:ey ************** @ TK2MSFTNGP15.phx.gbl ...
Thanks for the quick reply

Yes, "Visual Basic Form Editor (Default)" is listed...clicking on it brings
up the code for the form but it does not appear to be the standard code
editor (i.e. still no outline marks and no Intellisense). Also, I notice on
the context menu that the "View Code" option is missing, the only option in
that section of the menu is "View Designer".

I also tried Open With...Visual Basic Editor and gives the same
result....something that looks like a code editor but is not.

And it is only this one form...all the other forms work as expected.

I''ve also tried to exclude from project and then Add Existing Item...same
result....

Thanks

Dave Taylor
PERI

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
" Dave Taylor" <无********** @ processeng.com> schrieb:
"Dave Taylor" <no**********@processeng.com> schrieb:
我有一个VB.NET WinForms项目,里面有大约15个表单。当我昨天打开项目时,其中一个表单文件没有作为
表单打开(即在解决方案资源管理器中双击它会打开代码文件,
而不是表单设计器) 。此外,它似乎没有识别代码
文件....没有概述指标,在那里输入代码文件
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a
form (i.e. double-clicking it in Solution Explorer opens up the code file,
not the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there
is



单击解决方案资源管理器中的文件,然后选择打开方式...。




- Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps .org />



Right-click the file in solution explorer and choose "Open with...". Is
the Forms editor for Visual Basic available there?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>



这篇关于Visual Studio无法识别VB表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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