在Windows错误窗体控件在设计视图 [英] Errors in Windows Forms controls in designer view
问题描述
在一次,我在得到一些用户控件的设计模式下面的错误的Visual Studio 2008:
On occasion, I get the following error in design mode of some user controls in Visual Studio 2008:
文件'UserControl.vb'不 支持code解析或产生 因为它不包含在一个 支持code项目。
The file 'UserControl.vb' does not support code parsing or generation because it is not contained within a project that supports code.
这不会发生在一个一致的基础上,但它发生,足以令人反感。是否有此错误的任何共同的原因是什么?
It doesn't happen on a consistent basis, but it happens enough to be annoying. Are there any common causes of this error?
是的,它是在支持code项目 - 上次我检查,WinForms的项目通常具有code在其中
And yes, it is in a project that supports code - last I checked, WinForms projects typically have code in them!
推荐答案
这是在VS中的错误它发生在VS2005为好。
It is a bug in VS. It happens in VS2005 as well.
不要浪费你的时间:关闭VS,然后再次打开它,一切都应该正常工作
Don't waste your time: close VS, open it again and everything should work fine.
这篇关于在Windows错误窗体控件在设计视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!