If you are exposing your class as a WFC control, you can use Class Builder to manage the events defined by your class. Class Builder assists you in adding a new event, adding an event based on an existing definition, modifying an event, and deleting an event.
To display the events in your class
Start Class Builder and make sure your class is selected by Class Builder. For information on how to do this, see Starting Class Builder.
Click the Events tab in Class Builder. The WFC Events list displays all events that are currently defined by your class.
To add a new event
Click Add. In the Add Event dialog box, enter the information for the event:
Enter the name of the event in the Name box.
Select an event type from the Type drop-down list or enter your own event type.
Select a category from the Category drop-down list. Categories allow you to group related events; for example, you can categorize events in the Properties window. Category names cannot contain any spaces.
To provide a description for the event, enter the description text in the Description box. Event descriptions are displayed in the Properties window.
Click Add.
To add an event based on an existing event
Select an event from the WFC Events list and click Clone. The Clone Event dialog box displays the information for the selected event, which is the basis for the new event.
Replace the name in the Event Name box with the name of the new event. Modify the remaining selections as needed.
Click Add.
To modify an existing event definition
Select the event from the WFC Events list and click Modify.
In the Modify Event dialog box, modify the information for the event and then click Modify.
To delete an event that has already been declared
Select the event from the WFC Events list and click Delete.