Locked Property (RichTextBox Control)

       

Returns or sets a value indicating whether the contents in a RichTextBox control can be edited.

Syntax

object.Locked [= boolean]

The Locked property syntax has these parts:

Part Description
object An object expression that evaluates to a RichTextBox control.
boolean A Boolean expression specifying whether the contents of the control can be edited, as described in Settings.

Settings

The settings for boolean are:

Setting Description
True You can scroll and highlight the text in the control, but you can't edit it. The program can still modify the text by changing the Text property.
False (Default) You can edit the text in the control.