<div class="meta" robots="noindex">

</div>

# ListBox.AutoHideScrollBars

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.AllowAutoHideScrollBars<desktoplistbox.allowautohidescrollbars>` as a replacement.

</div>

## Description

Controls whether scrollbars are shown when scrolling is not necessary to bring additional text into view. The default is `True</api/language/true>`.

## Notes

The vertical scroll does not appear until there are more items in the ListBox than can be viewed at once. If <span class="title-ref">AutoHideScrollBars</span> is `False</api/language/false>`, then inactive scrollbars are shown until they are needed to bring additional text into view. <span class="title-ref">AutoHideScrollBars</span> can be set at design time or runtime.

## Sample code

This example turns off <span class="title-ref">AutoHideScrollBars</span>.

``` xojo
Me.AutoHideScrollbars = False
```

## Compatibility

All projects types on all supported operating systems.
