Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Control::UseWaitCursor Property

 

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)

public:
[BrowsableAttribute(true)]
property bool UseWaitCursor {
	bool get();
	void set(bool value);
}

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:
© 2017 Microsoft