Locked Property

       

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, as described in Settings.

Settings

The settings for boolean are:

Constant Description
False (Default) The user can edit the control or its contents.
True The user can't edit the control or its contents.