Control.UseWaitCursor Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(true)]
public bool UseWaitCursor { get; set; }

Property Value

Type: System.Boolean

true to use the wait cursor for the current control and all child controls; otherwise, false. The default is false.

Use a wait cursor whenever you perform an operation that takes a noticeable amount of time.However, note that operations that block the UI thread will also block acursor change.Therefore, this property should only be used when performing time-consuming operations in another thread. To change the cursor globally and immediately, seethe Current property.

.NET Framework
Available since 2.0
Return to top
Show: