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.

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."