MaskedTextBox.ReadOnly Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Use BaseTrue

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

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

member ReadOnly : bool with get, set

Property Value

Type: System.Boolean

true to indicate the text is read only; otherwise, false.

.NET Framework
Available since 2.0
Return to top