表单设计错误 [英] Form Designing Error

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

问题描述

嗨..

我在c#中遇到了这个错误设计器无法显示此文件,因为其中的任何类都无法设计

谢谢

hi..
I got this error in c# "The designer could not be shown for this file because none of the classes within it can be designed"
Thanks

推荐答案

当Visual Studio找不到满足设计者要求的基类时,会发生此错误。示例包括:Visual Studio找不到基类的设计器;基类是无法找到或加载的类。



要更正此错误:

表单和控件必须来自支持设计者的基类。如果您从正在使用的项目中获取某些内容(例如继承的表单或控件),则需要通过从生成菜单中选择生成解决方案来确保构建项目。



更多信息:http://msdn.microsoft.com/en-us/library/0t335zts.aspxa
This error occurs when Visual Studio cannot find a base class that satisfies designer requirements. Examples include: Visual Studio cannot find a designer for the base class; the base class is a class that could not be found or loaded.

To correct this error:
Forms and controls must derive from a base class that supports designers. If you are deriving from something, such as an inherited form or control, within the project you are working in, you need to make sure the project is built by selecting Build Solution from the Build menu.

For More Information: http://msdn.microsoft.com/en-us/library/0t335zts.aspxa


这篇关于表单设计错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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