# ScrollBars Property

> Sets or returns whether TXTextControl has no, horizontal, vertical or both scroll bars, shown only when PageWidth or PageHeight exceeds the visible area.

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

---

Returns or sets a value indicating whether a Text Control has horizontal or vertical scroll bars. Scroll bars are automatically hidden when the formatting area is smaller than the control's visible area and vice versa. Therefore this property has only effect if the [PageWidth](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagewidth-property/llms-full.txt) and/or the [PageHeight](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageheight-property/llms-full.txt) properties have been set to non-zero. See [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/llms-full.txt) for more information.

### Syntax

```vbscript
TXTextControl.ScrollBars [= value]
```

| Setting | Description |
|---|---|
| 0 | (Default) The Text Control has no scroll bars. |
| 1 | The Text Control has a horizontal scroll bar when the page width is larger than the control's width. |
| 2 | The Text Control has a vertical scroll bar when the page height is larger than the control's height. |
| 3 | The Text Control has both scroll bars. |

### Data Types

Integer.

### See Also

- [PageWidth Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagewidth-property/llms-full.txt)
- [PageHeight Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageheight-property/llms-full.txt)
- [Programming Category: Scrolling](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/scrolling/llms-full.txt)

---

## Nearby

- **Previous:** [SaveToMemoryBuffer Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/savetomemorybuffer-method/llms-full.txt)
- **Next:** [ScrollPosX Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/scrollposx-property/llms-full.txt)
