ScrollBars Property  
 

Description

Returns or sets a value indicating whether the control has horizontal or vertical scroll bars.

Syntax

object.ScrollBars [= bartype ]

Remarks

The ScrollBars property determines what kind of scroll bars are displayed if the virtual display is larger than the emulation control's window. It may be one of the following values:

Value Constant Description
0 nvtSBNone Do not display scrollbars
1 nvtHorizontal Display a horizontal scrollbar if necessary
2 nvtVertical Display a vertical scrollbar if necessary
3 nvtBoth Display both horizontal and vertical scrollbars if necessary

Scroll bars are only displayed if needed. If the emulation window is large enough to display all of the columns and rows, no scrollbars will be drawn even if they are enabled using this property.

Data Type

Integer (Int32)

See Also

CellHeight Property, CellWidth Property, Columns Property, Rows Property