G
Guest
In my Windows Forms application, while executing a process that takes some
time, I am changing the cursor to the hourglass by setting Cursor.Current =
Cursors.WaitCursor.
This is working just fine, except that any mouse events generated during
this wait period (such as clicking on a button, etc.), get processed once the
processing is complete. For example, while waiting for my task to complete,
I click on a button (even though the cursor is an hourglass). When the task
is complete, the button click event is executed.
The documentation for the Cursor.Current property makes it sound like the
application will stop listening for mouse events while the cursor is not set
to Cursors.Default, but this does not seem to be the case in practice.
Any advice? Is this a bug or am I doing something incorrectly?
Thanks!
-Karen
time, I am changing the cursor to the hourglass by setting Cursor.Current =
Cursors.WaitCursor.
This is working just fine, except that any mouse events generated during
this wait period (such as clicking on a button, etc.), get processed once the
processing is complete. For example, while waiting for my task to complete,
I click on a button (even though the cursor is an hourglass). When the task
is complete, the button click event is executed.
The documentation for the Cursor.Current property makes it sound like the
application will stop listening for mouse events while the cursor is not set
to Cursors.Default, but this does not seem to be the case in practice.
Any advice? Is this a bug or am I doing something incorrectly?
Thanks!
-Karen