Visual Basic Reference

HideSelection Property (ActiveX Controls)

See Also   Example   Applies To

Returns a value that determines whether selected text appears highlighted when a control loses the focus.

Syntax

object.HideSelection

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The HideSelection property return values are:

Value Description
True (Default) Selected text doesn't appear highlighted when the control loses the focus.
False Selected text appears highlighted when the control loses the focus.

Remarks

You can use this property to indicate which text is highlighted while another form or a dialog box has the focus for example, in a spell-checking routine.