添加自定义控件出错

fyfcom 2010-09-21 02:13:40

添加自定义控件时出错:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: UcButton --- The base class 'System.Object' cannot be designed.

请问是什么原因呢?
...全文
115 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shuai13869896140 2010-09-21
  • 打赏
  • 举报
回复
首先创建 ascx文件 然后保存 应该不会有问题吧?```
fangxiaofelix 2010-09-21
  • 打赏
  • 举报
回复
你是直接写的自定义控件,还是通过创建User control的
捷哥1999 2010-09-21
  • 打赏
  • 举报
回复
你的自定义组件继承自哪个?

The designer inspected the following classes in the file: UcButton --- The base class 'System.Object' cannot be designed.

编辑器提示,UcButton文件中的某个类(其基类是System.Ojbect)无法加载。

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧