I add an event handler in my code for a user control depending on the specific operation that is requested:
AddHandler myEvent, Addressof Handle_MyEvent
When the control is disposed of, I want to remove the event handler only if it was added in the first place using:
If "the handler exists"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.