Hi all,

I have a form with several buttons on it. When a button is pressed, it will execute some remoting proxy method on the server. There is some delay in the process before there is a result returned from server.

Currently, I tried to disable the button in the _Click event, hoping that a 2nd, 3rd and the following clicks would not be registered. Unfortunately, those input from the mouse clicks were queued by Windows.

So once the _Click event has finished running, it will immediately get executed again due to the earlier clicking.

I tried to create a form (Notice) to display some status message, hoping that clicks won't be registered on the button. Despite setting the form to maximize and on top of the caller form, the clicks still get registered.

Then I thought of using .ShowDialog(). Unfortunately, it halts the processing until I close the form. So I did something more complicated by passing in the method into Notice form, so that it would execute the _Click method via an address pointer.

Unfortunately, after all these coding. The buttons still get registered with the mouse clicks.

So now, is there any way to overcome this clicking queue that Windows registered?