Adding Events to Custom Classes

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

You can include your own events in custom classes, and create event procedures that run when those events occur. Creating a custom event is somewhat more complex than creating an event procedure for a built-in event, because your code has to raise the custom event in response to something that happens within the code.

In This Section