Is there any way to temporarily disable ALL events on an windows form?
I have situation where processing on a secondary thread is being corrupted by events on the
A few different options should allow you to solve this:
I would go with the first option, possibly coupled with setting the cursor to an hourglass and/or setting a message in the status bar. It's simple, it works, and it doesn't cause the actual UI to freeze. I would avoid the third option as it will "break" the behavior of your form while it's working. The second option's efficacy is dependent on how you implement it; it could very easily freeze the UI which is something you don't want to do..