property Edit.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 LockedLine property to lock or unlock a specific line. Use the ShowCaret property to hide the control's caret. If the Locked property is True, the UseTabKey property is automatically False. If the control is read-only ( Locked property is True ), the BackColorLockedLine property indicates the control's background color, if it is not zero. If the control is read-only ( Locked property is True ), the ForeColorLockedLine property indicates the control's foreground color, if it is not zero. Use the ApplyColors property to hide the colors inside the control.