Alternatively, select the event in the property sheet and click the ellipsis (...) button to display the Handlers dialog box.
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.
![]() |
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 Component Inspector |