How do I turn the cursor into an hourglass?

To turn the cursor into an hourglass, set the static Cursor.Current property to one of the values in the Cursors enumeration.

The following code sets the cursor to an hourglass:

In C#:

Cursor.Current = Cursors.WaitCursor;

In VB .NET:

Cursor.Current = Cursors.WaitCursor

And this code sets it back to its default:

In C#:

Cursor.Current = Cursors.Default;

In VB .NET:

Cursor.Current = Cursors.Default

The Cursor class is in the namespace System.Windows.Forms.


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 08/11/09
Comment or report problem with topic