RAD Studio for Microsoft .NET
ContentsIndex
PreviousUpNext
Creating a New VCL.NET Component

You can use the New VCL Component wizard to create a new VCL.NET component and add it to the Tool Palette.

General procedure for creating a new VCL.NET component

  1. Create a package (.dll).
  2. Create your new .NET VCL component:
    1. Specify the ancestor component.
    2. Specify the class name.
  3. Register your component and add it to the VCL.

To create a package

  1. Choose File->New->Other->Delphi for .NET Projects->Package.
  2. RAD Studio creates the package and displays it in the Project Manager.

To create your new .NET VCL component

  1. Choose FileNewOtherDelphi for .NET ProjectsNew FilesVCL Component. This displays the first page of the New VCL Component dialog box and loads the list of ancestor components.
  2. On the Ancestor Component page of the New VCL Component dialog box, select an ancestor component from the list and click Next.
  3. On the Component page of the New VCL Component dialog box, review the default values for Class Name, Palette Page, Unit Name, and Search Path. You can accept the default values or enter values of your choice.
  4. Click Next. At this point, you should see that the Project Manager now lists your new .NET VCL component inside the package you have created.

To register your component in the VCL

  1. Choose Component->Installed .NET Components.
  2. Select the .NET VCL Components tab.
  3. Click Add.
  4. In the Browse to select a VCL .NET Package/Assembly dialog box, click the package that contains the .NET VCL component you have just created.
  5. On the Tool Palette, find the unit in which your .NET VCL component was installed. In that unit, you should see your .NET VCL component listed.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!