Stop executing events

  • Thread starter Thread starter Kuba Florczyk
  • Start date Start date
K

Kuba Florczyk

Hi

In my application one of class got event. But after calling EventHandlers i
want to stop execute rest if one of them set e.Handled = true.
How to do it?

kuba florczyk
 
Use GetInvocationList() method to get list of the event handlers. Invoke
each handler in a loop while checking if the event was "handled".

Val.
 
Back
Top