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"...
Hi, Does someone know how to remove a handler set up by a lambda expression? According to this MSDN article, lambda expression should be assigned to variables which should be used to define handler operators. So far, I have used lambda expessions w/o variables. For instance, the following works...
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.