Hi.
In my app I am have a button which, when clicked, spawns a worker process.
When the user clicks this button, I am setting its Enabled property to false
to disable the button and prevent the user from clicking it again and
spawning a second process. The button is enabled again when the process
finishes.
This works fine, except for the fact that if the user clicks on the button
when it is disabled, the click is buffered. This means that if the user has
clicked on the button when it was disabled, as soon as the worker process
finishes and the button is re-enabled, the click is registered and the
process starts for a second time.
I want to ignore any clicks on the button when it is disabled. Is there
some way I can programmatically turn off or clear the click buffer?
Mike