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
- Create a package (.dll).
- Create your new .NET VCL component:
- Specify the ancestor component.
- Specify the class name.
- Register your component and add it to the VCL.
To create a package
- Choose File->New->Other->Delphi for .NET Projects->Package.
- RAD Studio creates the package and displays it in the Project Manager.
To create your new .NET VCL component
- 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.
- On the Ancestor Component page of the New VCL Component dialog box, select an ancestor component from the list and click Next.
- 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.
- 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
- Choose Component->Installed .NET Components.
- Select the .NET VCL Components tab.
- Click Add.
- 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.
- 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.