What's New in Windows Forms 2.0 - UseWaitCursor
"A new property has been added to the Control (in System.Windows.Form) class: UseWaitCursor. This property simply sets the control's Cursor property. When UseWaitCursor is set to true, the control's Cursor property is set to Cursors.WaitCursor. When UseWaitCursor is set to false, the control's Cursor property is set to Cursors.Default.
The Application class also contains a UseWaitCursor property. This property sets the UseWaitCursor property of any open Forms in the application.
Please note that you must set UseWaitCursor to false in order to change the control's Cursor property back to Cursors.Default; otherwise, you'll constantly see an hourglass mouse cursor for the affected control(s)."
Sigh... so much to learn (which makes this job so damn cool).
This new property is one of those simple things that can make you job just a bit easier...
Thursday, December 15, 2005
2 comments:
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
Didn´t work fine yet. Doesn´t refresh the cursor, and some controls go crazy when you use it.
ReplyDeleteNice... Well then I don't feel so bad in not using it yet. ;)
ReplyDelete