Gets or sets a value indicating whether text in the object is read-only.


object.ReadOnly [ = Boolean ]

Property Value

True if the control is read-only; otherwise, false. The default is false.


When this property is set to true, the contents of the object cannot be changed by the user at runtime. With this property set to true, you can still set the value of the Text property in code.

TextBox: You can use this feature instead of disabling the control with the Enabled property to allow the contents to be copied.

See Also:

Applies To: TextBox

The CHM file was converted to HTML by chm2web software.