Hi,
iam not understanding what this sentence performs in C#windows
Cursor.Current = Cursors.WaitCursor
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Blocked AccountPosted Jun 1, 2009, 12:07 AM
Normally you only need to set Cursor.Current = Cursors.WaitCursor, once your
event finishes Cursor.Current will revert back to Cursors.Default, as
Application.DoEvents will implicitly have be executed.
Where you need to be careful is if you explicitly call Application.DoEvents
while processing an event. Cursor.Current will revert back to
Cursors.Default. (The remarks under Cursor.Current.)
Remember that .NET looks at the Control.Cursor property under the mouse to
display the cursor, if Control.Cursor = Cursors.Default it will look at
Cursor.Current.
Also remember if you don't explicitly set Control.Cursor it will be set to
the value of its parent, which ultimately will be a Form...