Specifying the Connection Target
The second step in the Connection wizard is to specify the operation that is to be
performed on the target component when the source component fires the event.
Select one of three options:
-
Set Property. Sets a property on the target component when the source event
is fired. You specify the property value in the next step.
-
Method Call. Calls a method on the target component when the source event is
fired. You specify the parameters for the method call in the next step.
If the method call has no parameters, the Next button of the Connection wizard
changes to Finish.
-
User Code. Specifies that you want to write the event handler code in the
Source Editor. When you choose this option, the Next button changes to Finish,
meaning there are no settings remaining in the wizard and the target component is
ignored by the Connection wizard.
When you click Finish, the insertion point in the Source Editor is placed in the new
event handler, where you can write the event handler code yourself.
Legal Notices