Setting the System Cursor
-
I know how to set the cursor while in a 'form' but I want to change the system cursor just before I launch a thread and then change it back to the Arrow when the threaded process completes. How do I change the system cursor in C#? cb
The cursor should not be set for the entire desktop by an application. It's recommended that you set
Cursor.Current
, which applies to the entire application (Control.Cursor
applies only to that window (a control is a window)). There is no reason to set the cursor for the entire desktop, neither. This violates the standard of per-application cursors.Microsoft MVP, Visual C# My Articles
-
I know how to set the cursor while in a 'form' but I want to change the system cursor just before I launch a thread and then change it back to the Arrow when the threaded process completes. How do I change the system cursor in C#? cb
Changing the "system" cursor is unnecessary for a standard application. You should only be concerned about setting UI cues in your application and only your application unless you have very special reasons.
Cursor.Current
should be more than enough control of the cursor over your application. Set it whatever you want as part of the thread starting set it back to whatever it was before when it is done. -
Changing the "system" cursor is unnecessary for a standard application. You should only be concerned about setting UI cues in your application and only your application unless you have very special reasons.
Cursor.Current
should be more than enough control of the cursor over your application. Set it whatever you want as part of the thread starting set it back to whatever it was before when it is done.