Managing the Events in a Class

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

  1. Start Class Builder and make sure your class is selected by Class Builder. For information on how to do this, see Starting Class Builder.

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

  1. Click Add. In the Add Event dialog box, enter the information for the event:
  2. Click Add.

To add an event based on an existing event

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

  2. Replace the name in the Event Name box with the name of the new event. Modify the remaining selections as needed.

  3. Click Add.

To modify an existing event definition

  1. Select the event from the WFC Events list and click Modify.

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