ListBox and PictureListBox controls
The DisableNoScroll property specifies the behavior of a scroll bar in a list box. If the property is enabled, the scroll bar is always visible, but is disabled when all the items can be accessed without it. If the property is disabled, the scroll bar is displayed only if it is necessary, based on the number of items and the height of the ListBox or PictureListBox.
Smartphone platform
On Smartphone platforms, ListBox controls are converted to
spinner controls. The spinner control does its own scroll management,
and a scroll bar displays only if there are more items than can
be accomodated on a single screen.
To make the scroll bar always visible but disabled
when not needed:
Select the DisableNoScroll check box on the General page of the control’s Properties view
The DisableNoScroll property takes a boolean value. This example for a ListBox displays the scroll bar only when needed:
lb_1.DisableNoScroll = FALSE
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |