SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines whether the control allows data entry and can be edited.
Get
VB.NET | Boolean = object.Locked As Boolean |
VB | Boolean = object.Locked As Boolean |
C#.NET | bool Boolean = object.Locked; |
VC++ | VARIANT_BOOL Boolean = object->Locked; VARIANT_BOOL Boolean = object->GetLocked(); |
C | HRESULT object->get_Locked(VARIANT_BOOL* Boolean); |
Put
VB.NET | object.Locked = Boolean As Boolean |
VB | object.Locked = Boolean As Boolean |
C#.NET | bool object.Locked = Boolean; |
VC++ | VARIANT_BOOL object->Locked = Boolean; void object->PutLocked(VARIANT_BOOL Boolean); |
C | HRESULT object->put_Locked(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the control allows data entry and can be edited.
Boolean | Description |
---|---|
True | The control does not allow data entry and cannot be edited. |
False | The control allows data entry and can be edited. |
The Locked property defines whether the control allows data entry and can be edited.
The Locked property causes the control to prevent modification of its contents by the user through keyboard or mouse input while retaining all other interface features. Unlike disabling the control using the Enabled property, if a control is locked it can still receive the input focus and the user can continue to interact with the control.
If a control is locked, the popup calendar, calculator and autocomplete feature are not available.
When the Locked property is set, it also updates the LockedDropDown, LockedEllipse and LockedUpDown properties with the same Boolean value. The LockedDropDown, LockedEllipse and LockedUpDown properties can be set independently after setting the Locked property.
See Also SftMask Object | Object Hierarchy