Removing an Event Handler

See Also

  1. In the Inspector window, select the component whose event handler you want to remove.
  2. Click Events in the Properties window.
  3. Delete the name of the handler in the property sheet.

    Alternatively, select the event in the property sheet and click the ellipsis (...) button to display the Handlers dialog box.

  4. If you displayed the Handlers dialog box, select the handler to remove in the handlers list and click Remove.

When you remove an event handler, the code block is deleted. If more than one handler uses the same name and same block of code, deleting a single reference to the code does not delete the code. Only deleting all references deletes the corresponding code block, and a confirmation dialog box is displayed first.

Tip If you remove an event but do not delete the event handler when prompted by the confirmation dialog box, an orphaned handler remains in the guarded text. To delete the orphaned handler, you need to add another event handler of the same name, delete that event, and then agree to delete the handler in the confirmation dialog box.
See Also
Defining an Event Handler
Renaming an Event Handler
Inspector Window

Legal Notices