How do I use RemoveHandler
with anonymous methods?
This is how I add a handler for MyEvent
event of the class MyClass
:
AddHandler MyClass.MyEvent, Sub()
'...
End Sub
How do I then use RemoveHandler
to remove the handler for the MyEvent
event?