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

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
 
A

Academic

I got confusing results.

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

Do you?
 
A

Academic

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top