Posted By: zian | Feb 15th @ 10:42 PM
page 1 of 1
Comments: 3 | Views: 586
zian
zian
Exploding heads since 1988

I wish to set the cursor of a form to Wait and then launch a dialog, and then, when the dialog is done and sends a Finished event to the parent form, to change the cursor back to the Default.

Currently, I use Cursor = Cursors.WaitCursor but that doesn't seem to work because when I move the mouse over the parent form while the dialog is visible, the cursor shows up as the Default cursor instead of the Wait cursor. Does anyone have any suggestions or ideas for getting the Wait cursor to show up?

I'm using VB .NET but I can take a decent stab at understanding C# code if necessary.

TommyCarlier
TommyCarlier
I want my scalps!
Each control (including Form) has a boolean property UseWaitCursor, which you can set to true to use the wait-cursor, or false to use the regular cursor. You could try that one.
Jorgie
Jorgie
Jorgie
I think you are looking for:

Cursor.Current = Cursors.WaitCursor;

And to reset it:

Cursor.Current = Cursors.Default;

-Jorgie
page 1 of 1
Comments: 3 | Views: 586
Microsoft Communities