Determines whether the element's contents are read-only, meaning that the user cannot enter or edit text in the control.
Syntax
HRESULT get_readOnly( VARIANT_BOOL *p );
Parameters
- p
- Address of a variable that receives TRUE if the element is read-only, or FALSE if not.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This is different than disabled. Read-only still allows the element to receive the focus, while disabled does not.
The default value for this property is FALSE.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Specifies whether the element's contents are read-only, meaning that the user cannot enter or edit text in the control.
Syntax
HRESULT put_readOnly( VARIANT_BOOL v );
Parameters
- v
- Read-only flag. TRUE sets the element to read-only; FALSE does not.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This is different than disabled. Read-only still allows the element to receive the focus, while disabled does not.
The default value for this property is FALSE.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0