System.Windows.Forms.UpDownBase.ReadOnly Property

Gets or sets a value indicating whether the text can be changed by the use of the up or down buttons only.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool ReadOnly { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

By setting the UpDownBase.ReadOnly property to true, you will eliminate the need for much validation of the UpDownBase.Text property. The user will be restricted to the use of the up and down buttons to change the UpDownBase.Text values. It will only allow them to select values you specify.

Note:

In the derived class System.Windows.Forms.DomainUpDown, the behavior described is slightly different. When UpDownBase.ReadOnly is set to true and a key is pressed, the control selects the first item in the collection where the first character matches the key pressed.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0