Thursday, December 15, 2005

So Much Too Learn ... "Windows Forms 2.0 - UseWaitCursor"

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...

2 comments:

Anonymous said...

Didn´t work fine yet. Doesn´t refresh the cursor, and some controls go crazy when you use it.

Greg said...

Nice... Well then I don't feel so bad in not using it yet. ;)