Returns and sets whether the object shows a disabled vertical scroll bar when the object does not contain enough items to scroll.
Object.DisableNoScroll [ = bDisableNoScroll ]
The DisableNoScroll property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AListBox |
AListBox control |
|
bDisableNoScroll |
Bool |
A boolean expression that specifies whether the object will display a scroll bar. |
bDisableNoScroll can be one of the following:
|
Value |
Description |
|
True |
Displays a disabled vertical scroll bar when the box does not contain enough items to scroll. |
|
False * |
Displays a scroll bar on the control. |
Normally, the scroll bar is hidden when the list box does not contain enough items to scroll.
This property can be set at design time as well as at run time.
The following statement returns whether the AListBox shows a disabled vertical scroll bar when it does not contain enough items to scroll:
blb1DisableNoScroll = lb1.DisableNoScroll
The following statement sets the property:
lb1.DisableNoScroll = True