How do I change the mouse cursor to a hourglass?

With .NET you can easily change the current cursor by using the 
Cursors class. To change the cursor to a hourglass, we’ll be using the 

this.Cursor = Cursors.WaitCursor;

To change it back to normal after the application has stopped loading:

this.Cursor = Cursors.Default;

As IntelliSense points out, you can change the mouse cursor to various shapes (crosshair, hand, help, etc.).

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top