Implementing methods in an ActiveX control is similar to the way that methods are implemented in other ActiveX components and class modules. You can create your own custom methods as Public procedures in the UserControl, then invoke the methods in code. After adding code to your Public procedure, you can then add the ActiveX control to a form. Code within the form (or a control on the form) invokes the method, as you would any other method of an object. For example, let’s say you created a Public procedure called BoldAll to your UserControl. After adding the control to a form and naming it MyControl, you could then have code in the form invoke the method as follows:

MyControl.BoldAll