Marton Korosi

Marton Korosi

  • NA
  • 14
  • 34.5k

How to disable click event temporarily of a panel (in Windows Forms app)?

Jul 5 2012 6:34 PM
When I click on my panel, a long computation starts, and it last for some seconds.
During this time I want to disable click event, becuse if I don't, the events accumulate in the event queue, and finally they are served according FIFO, one after the other.
I want to avoid this, I want to disable event queue whilst the first event is serviced.
How can I do that? 

Answers (1)