Returns or sets a value indicating whether a control can be edited.
Syntax
object.Locked [ = boolean]
The Locked property syntax has these parts:
Part
Description
object
An object expression that evaluates to an object in the Applies To list.
boolean
A Boolean expression that specifies whether the control can be edited. If True, the user can scroll and highlight the text in the control, but can't edit it. The program can still modify the text by changing the Text property; if False(default), user can edit the text in the control.