I have a form which has a button(sychronize all). I do some process when clicked on this button and disable it when clicked on. To disable it I have used the following code:

Code:
 buttonSyncAll.Enabled = false;
 this.Update();
When I click on this button it gets disabled and process starts.if I click on this button when it is disabled nothing happens unless process finished but once the process is finished it starts again. So somewhere application is keeping click event in queue and implementing it after it has finished the earlier event. Please tell me how can I make sure that until process finishes, the click event should not be saved/stored. I want that click event should only be handled when button gets enabled again.