With
System.Windows.Forms
it's not necessary to pass the owner. You can use static property
Cursor.Current
.
I use the following class in my projects:
public sealed class WaitCursor : IDisposable
{
private Cursor _SavedCursor;
public WaitCursor()
{
_SavedCursor = Cursor.Current;
Cursor.Current = Cursors.WaitCursor;
}
public void Dispose()
{
Cursor.Current = _SavedCursor;
}
}
Usage:
using (new WaitCursor())
{
}
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.