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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

how to convert this C function into C-Sharp ? 1
graphics in c# 6
How to change cursor. 10
help me! 5
help me 6
C sharp problem 1
Detect mouse leaving from a list view item 2
Mouse cursor 3

Back
Top