HideSelection

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.

Return Values

The HideSelection property return values are described in the following table.

Value Description
True (Default). Selected text does not 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.