添加自定义控件时出错:
 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.  请问是什么原因呢?

解决方案 »

  1.   

    你的自定义组件继承自哪个?The designer inspected the following classes in the file: UcButton --- The base class 'System.Object' cannot be designed.   编辑器提示,UcButton文件中的某个类(其基类是System.Ojbect)无法加载。
      

  2.   

    你是直接写的自定义控件,还是通过创建User control的
      

  3.   

    首先创建 ascx文件 然后保存 应该不会有问题吧?```