ListBox.AutoHideScrollBars


Warning

This item was deprecated in version 2019r2. Please use DesktopListBox.AllowAutoHideScrollBars as a replacement.

Description

Controls whether scrollbars are shown when scrolling is not necessary to bring additional text into view. The default is True.

Notes

The vertical scroll does not appear until there are more items in the ListBox than can be viewed at once. If AutoHideScrollBars is False, then inactive scrollbars are shown until they are needed to bring additional text into view. AutoHideScrollBars can be set at design time or runtime.

Sample code

This example turns off AutoHideScrollBars.

Me.AutoHideScrollbars = False

Compatibility

All projects types on all supported operating systems.