Click to return to the Reusing Browser Technology home page    
IHTMLInputTextElement::ge...     IHTMLInputTextElement::ge...     IHTMLInputTextElement Int...    
Web Workshop  |  Reusing Browser Technology

IHTMLInputTextElement::get_readOnly Method


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

IHTMLInputTextElement::put_readOnly Method


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


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.