Table of Contents

Class WaitCursor

Namespace
Acuit.Pinpoint.Windows
Assembly
Acuit.Pinpoint.Windows.dll

Provides an easy way to show a wait cursor during a process. When a WaitCursor instance is created, the wait cursor will be shown, and when the instance is disposed, the normal cursor will be restored.

public sealed class WaitCursor : IDisposable
Inheritance
WaitCursor
Implements
Inherited Members

Examples

using (new WaitCursor())
{
    // Do work here...
}

Constructors

WaitCursor()

Initializes a new instance of the WaitCursor class.

public WaitCursor()

Remarks

The wait cursor will be shown.

Methods

Dispose()

Restores the normal cursor.

public void Dispose()

HideWait()

Clears the wait cursor override.

public static void HideWait()

Remarks

This can be used to temporarily hide the wait cursor while interacting with the user during a lengthy process. Call ShowWait() to show the wait cursor again before resuming the lengthy process.

ShowWait()

Shows the wait cursor for the entire application, overriding whatever cursor(s) would normally display.

public static void ShowWait()