System.Windows.Forms.ScrollBars Enumeration

Specifies which scroll bars will be visible on a control.

Syntax

public enum ScrollBars

Remarks

This enumeration is used by TextBox.ScrollBars.

Not all controls support scroll bars. Use this enumeration to specify which scroll bars will be visible on a control, either under some or all circumstances.

Members

Member NameDescription
Both

Both horizontal and vertical scroll bars are shown.

Horizontal

Only horizontal scroll bars are shown.

None

No scroll bars are shown.

Vertical

Only vertical scroll bars are shown.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0