Returns whether the form has horizontal or vertical scroll bars.
[ bScrollBars = ] Object.ScrollBars
The ScrollBars property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AForm |
AForm object |
|
bScrollBars |
Bool |
A boolean expression that specifies whether the form has horizontal or vertical scroll bars. |
bScrollBars can be one of the following:
|
Value |
Description |
|
True * |
The form has a horizontal or vertical scroll bar, or both. |
|
False |
The form has no scroll bars. |
Scroll bars are displayed on an object only if its contents extend beyond the object's borders. For example, in an MDIForm object, if part of a child form is hidden behind the border of the parent MDI form, a horizontal scroll bar (HScrollBar control) is displayed. If ScrollBars is set to False, the object won't have scroll bars, regardless of its contents.
The property is read only at run time and is applicable only to MDI Form.
The following statement retrieves whether the AForm will display scroll bars:
bFrm1ScrollBars = ScrollBars