Associate a method with an event
An object has default events. Select a method the event is to perform when the event occurs at runtime. An event can have multiple methods to perform.
- InProject view, select the object with an event.
- InPropertiesunderEvents, next to the event to associate with a method, selectAdd net method.
- In the selection window, navigate to and select the method to add:
- Global method. ExpandCommandsand expand the method node to select a method.
- Local node. Expand the node of the object to select a method.
- SelectSelect.
- (optional) If the method requires arguments, expand the method and set the arguments.
- (optional) Associate any additional methods with the event.
Provide Feedback