关于设计表格问题 [英] Regarding design form issue

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

问题描述

大家好,

我在c#Windows应用程序中醒来.我的Visual Studio版本是2010,操作系统是Windows XP.我的问题是,当我从另一台Windows 7计算机上复制应用程序时,我在应用程序中看不到设计页面.它显示错误消息,例如< b>无法显示该文件的设计器,因为其中的所有类都无法设计//b".代码窗口打开没有问题.但是intellisense在代码窗口"中不起作用.因此,请任何人帮助我..谢谢.

Hi to all,

I''m woking in c# windows application. my visual studio version is 2010 and Os is Windows XP. My problem is When i copy the application from another machine which is windows 7, i could''t see the design page in my application. It shows the error message like "<b>The designer could not be shown for this file because none of the classes within it can be designed</b> ". Code Window is opened without problem. But intellisense not working in Code Window. So please any one help me.. Thanks.

推荐答案

尝试清洁解决方案并重建它.
Try cleaning the solution and rebuilding it.


根据MSDN,您需要执行给定的任务
更正此错误
表单和控件必须从支持设计器的基类派生.如果您是从正在处理的项目中继承的东西(例如继承的窗体或控件)派生的,则需要通过从构建"菜单中选择构建解决方案"来确保该项目已构建.
参考链接:- MSDN- [无法显示该文件的设计器,因为 [
According to MSDN you need to do given task
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.
Reference Link :- MSDN-[The designer could not be shown for this file because none of the classes within it can be designed][^]




检查名称空间是否正确..
然后检查一下designer.cs表单..

可能对你有用.


check the namespace is correct or not..
then check same for designer.cs form..

may this work for u..


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

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