By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,742 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,742 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 4 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Try it an see...

" Academic" <ac************@a-znet.comwrote in message
news:uX**************@TK2MSFTNGP03.phx.gbl...
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


Nov 4 '06 #2

P: n/a
I got confusing results.

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

Do you?

"Terry Olsen" <to******@hotmail.comwrote in message
news:OH**************@TK2MSFTNGP02.phx.gbl...
Try it an see...

" Academic" <ac************@a-znet.comwrote in message
news:uX**************@TK2MSFTNGP03.phx.gbl...
>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



Nov 4 '06 #3

P: n/a


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.



" Academic" <ac************@a-znet.comwrote in message
news:uX**************@TK2MSFTNGP03.phx.gbl...
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


Nov 4 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.