在Windows错误窗体控件在设计视图 [英] Errors in Windows Forms controls in designer view

查看:147
本文介绍了在Windows错误窗体控件在设计视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一次,我在得到一些用户控件的设计模式下面的错误的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屋!

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