Specifies whether selected text remains highlighted when a control does not have the focus.
Syntax
object.HideSelection [= Boolean]
The HideSelection property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
Boolean | Optional. Whether the selected text remains highlighted even when the control does not have the focus. |
Settings
The settings for Boolean are:
Value | Description |
---|---|
True | Selected text is not highlighted unless the control has the focus (default). |
False | Selected text always appears highlighted. |
Remarks
You can use the HideSelection property to maintain highlighted text when another form or a dialog box receives the focus, such as in a spell-checking procedure.