|
|
|
SftMask.Locked Property |
Defines whether the control allows data entry and can be edited.
Syntax
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;
|
||
C |
HRESULT object->get_Locked(VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.Locked : WordBool; |
||
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;
|
||
C |
HRESULT object->put_Locked(VARIANT_BOOL Boolean); |
||
Delphi |
object.Locked := Boolean : WordBool; |
object
A SftMask 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. |
Comments
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.