TextBoxBase::DefaultCursor 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 the default cursor for the control.

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

protected:
property Cursor^ DefaultCursor {
	virtual Cursor^ get() override;
}

Property Value

Type: System.Windows.Forms::Cursor^

An object of type Cursor representing the current default cursor.

Override DefaultCursor to configure a default cursor for your control. This is more efficient than setting the cursor in the control's constructor, and gives automatic support for certain cursor-related designer functions.

.NET Framework
Available since 2.0
Return to top
Show: