自己做了一个控件,继承的是其他控件,但为什么我自定义的属性显示不出来呢?

解决方案 »

  1.   

    已经用了PUBLIC,用代码可以打出来,但在属性界面却没有这个属性.
      

  2.   

    我在程序中引用了一个*.OCX,VS就自动在引用里面就多出来一个*.dll文件的引用.
    做了一个控件,本想继承他的一切(包含他的LP),但没想到做出来的控件不能被引用,提示"c:\xxx\xxxx\*.dll中没有可放置在工具箱上的组件",请高人指个道.
    控件代码如下:
    using System;
    using System.Collections.Generic;
    using System.Text;
    using QRMAKERLib;
    namespace WindowsControlLibrary2
    {
        public class Mybutton : QRMAKERLib.QRmakerClass
        {
            private string myPro;
            public string MyPro
            {
                get { return myPro; }
                set { myPro = value; }
            }
        }
    }