Add an event to an object from another object
Add an event from an object to another object to avoid recreating the same event for multiple objects.
- In Project view, select the object to which you want to add the event.
-
In Properties after Events, select
Add external event.
- Navigate to the object that has the event you want to add to the current object, select the event, and then choose Select.
-
To associate a method with the event, after the event, select
Add net method and select the desired method.
-
In the selection window, navigate to and select the method and perform one of the following actions:
- To add a Global method, expand the Commands node and expand the method node to select a method.
- To add aLocal node, expand the node of the object to select a method.
- Choose Select.
- (optional) If the method requires arguments, expand the method and set the arguments.
- (optional) Repeat 4 to 6, to associate any additional methods with the event.