Steps to Creating an ActiveX Control that Expose Properties
To implement your own ActiveX
control, you must take the following basic steps:
Put a UserControl container into your application.
This object is implemented in its own separate file similar to a Form. The
UserControl provides the basis for the control.
If you decide to implement user-drawn features in your control, you must plan
and implement those raphic features, putting code in the appropriate event procedures.
Create custom methods and events in the UserControl as you would in a Class
Create custom properties in the UserControl as you would in a Class
Module, remembering to make extra provision for property persistence.
If you decide to implement constituent controls, then you must place any constituent
controls that you will be using on the UserControl's surface and implement
their delegated methods, delegated events, and delegated properties as well.
Put additional code in UserControl event procedures so that
you initialize your control's properties appropriately and cause them to persist.
The following sections descripbes the above metioned steps in details