Do I need to reset the cursor or will that happen automatically when I leave the subroutine?

  • Thread starter Thread starter Academic
  • Start date Start date
A

Academic

If I do the following:

System.Windows.Forms.Cursor.Current = Cursors.WaitCursor

Do I need to reset the cursor or will that happen automatically when I leave
the subroutine?





Thanks
 
I got confusing results.

certainly if you use that statement you know if you reset or not.

Do you?
 
I just found UseWaitCursor

Looks like I should be using it to set the cursor.

The statement below does not say what happens when it is set to false.

I'm thinking of nested routines all of which set it to true. What happens if
one finishes and sets it to false?

Is this what developers use since net 2.0

thanks

When this property is set to true, the UseWaitCursor property of all open
forms in the application will be set to true. This call will not return
until this property has been set on all forms. Use this property when you
have a long-running operation, and want to indicate in all application forms
that the operation is still processing.
 
Back
Top