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.


public bool ReadOnly { set; get; }


Documentation for this section has not yet been entered.


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.


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.


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