1
Answer

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

Marton Korosi

Marton Korosi

12y
4.3k
1
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)