Visual Basic Concepts
Raising Events from Controls
It's important to distinguish between the events received by your UserControl object (or by the controls it contains) and the events your control raises. Events your control receives are opportunities for you to do something interesting; events your control raises provide opportunities for the developer who uses your control to do something interesting.
This principle is demonstrated, with illustrations, in the step-by-step procedure "Adding an Event to the ShapeLabel Control" in "Creating an ActiveX Control."
The following related topics explain control events in detail.
Exposing Events of Constituent Controls Describes how to use the events of the UserControl object and its constituent controls to generate events for your ActiveX control.
Events the Container Provides for Your Control Discuses events provided for the developer by the container, independent of the control author.
Specifying a Default Event for the Code Window Describes how to specify which of your control's events is selected by default in the code window.
Events Your Control Should Raise Explains how to determine what events your control should raise, and how to use the ActiveX Control Interface Wizard to simplify the creation of events.
For More Information General information on using events in components, including restrictions on arguments, can be found in "Adding Events to Classes" in "General Principles of Component Design."