# HideSelection Property

> Specifies whether the text selection of the TXTextControl is hidden when the control loses the input focus (True, the default) or stays visible (False).

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > HideSelection Property
- **138 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hideselection-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hideselection-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hideselection-property/llms-full.txt

---

Specifies whether a text selection is hidden when the Text Control loses the input focus.

### Syntax

```vbscript
TXTextControl.HideSelection [= boolean]
```

| Setting | Description |
|---|---|
| True | (Default) The selection is hidden when the Text Control loses the input focus and shown when the Text Control gets the input focus. |
| False | The selection stays visible, independent of the current input focus. |

### Data Types

Boolean.

### See Also

- [Programming Category: Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt)

---

## Nearby

- **Previous:** [HExpand Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hexpand-event/llms-full.txt)
- **Next:** [HScroll Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hscroll-event/llms-full.txt)
