How do you change an event handler at runtime? In my case I have a AddIn for AutodeskInventor.
Based on what the user selects I want a button to do different things. So I should remove the current active handler and add a new one.
But I don't want to "save" what handler was added when the user made another selection.
So how do you change the event handler if you don't know what handler is currently active?
RemoveHandler c1.AnEvent, AddressOf EventHandler2
AddHandler c1.AnEvent, AddressOf EventHandler2