MouseDevice.OverrideCursor Property

Definition

Gets or sets the cursor for the entire application.

public:
 property System::Windows::Input::Cursor ^ OverrideCursor { System::Windows::Input::Cursor ^ get(); void set(System::Windows::Input::Cursor ^ value); };
public System.Windows.Input.Cursor OverrideCursor { get; set; }
member this.OverrideCursor : System.Windows.Input.Cursor with get, set
Public Property OverrideCursor As Cursor

Property Value

The override cursor or null if OverrideCursor is not set.

Remarks

The Cursor that OverrideCursor is set to will be applied to the whole application.

To clear the override Cursor, set OverrideCursor to null.

Setting OverrideCursor to None will force the mouse cursor not to be displayed, but mouse events are still processed.

Applies to