property Expression.Locked as Boolean
Determines whether a control can be edited.

TypeDescription
Boolean A boolean expression that determines whether the control can be edited.

Use the Locked property to make the control read-only. The scrollbars are enabled, and the user can select or moves the caret. Use the Enabled property to disable the control. If the control is disabled, the scrollbars are disabled, and the user can't select or move the caret. Use the ShowCaret property to hide the control's caret. If the Locked property is True, the UseTabKey property is automatically False.