how to change mouse cursor to busy state

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi i am using c sharp and not able to change the cursor sharp to busy state when i am performing some porcessing.please tell me thanks
 
You can use:

Cursor.Current = Cursors.WaitCursor;

and as long as there is some processing going on in a WinForms application the cursor stays in the WaitCursor state.

You can as well use your custom designed cursors:

Cursor.Current = new Cursor("C:\\Cursors\\MyWait.cur");
 
--
hi i am using c sharp and not able to change the cursor sharp to busy
state when i am performing some porcessing.please tell me thanks
You can read the section on msdn at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwindowsformscursorclassctortopic1.asp
and do the following

if ( ..your condition...)
{
Cursor.Current = Cursors.WaitCursor
}
--
Adrian Mascarenhas, Developer Division

This posting is provided "AS IS" with no warranties, and confers no rights.

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Back
Top