HideSelection

This property returns a value that determines whether selected text appears highlighted when a control loses the focus.

Syntax

object.HideSelection

Parameters

object
Object expression that evaluates to a TextBox, ListView, or TreeView control.

Return Values

The following table shows the return values for the HideSelection property.

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

Use this property to indicate which text is highlighted while another form or a dialog box has the focus—for example, in a spelling checker routine.