Make mouse with busy icon (C#)

mouthpiec picture mouthpiec · Mar 25, 2010 · Viewed 17.6k times · Source

I have an application that takes a couple of seconds to run. Is it possible to make the mouse with the busy icon while the app is processing?

Answer

XpiritO picture XpiritO · Mar 25, 2010

Use Cursor.WaitCursor property.

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");

source: http://bytes.com/topic/c-sharp/answers/238623-how-change-mouse-cursor-busy-state