我创建了一个简单的VCL控件,为TWinControl的子类,编译后注册,在工具面板可以看到这个控件。然后用new->ActiveX Control向导的时候,在VCL Class Name列表中却看不到这个控件。哪位大侠教我该怎么做才对?

解决方案 »

  1.   

    不会吧,有的啊,是不是你写的VCL控件有不对的地方啊,老兄,自己去查一下吧
      

  2.   

    Tiack(泰克),你的Delphi是什么版本呢?
      

  3.   

    unit A;interfaceuses
      SysUtils, Classes, Controls;type
      TA = class(TCustomControl)
      private
        { Private declarations }
      protected
        { Protected declarations }
      public
        { Public declarations }
      published
        { Published declarations }
      end;procedure Register;implementationprocedure Register;
    begin
      RegisterComponents('Standard', [TA]);
    end;end.
    我的代码如上,有什么问题吗?