System.Windows.Forms.HScrollBar Class

Represents a standard Windows horizontal scroll bar.

See Also: HScrollBar Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
public class HScrollBar : ScrollBar

Remarks

Most controls that need scroll bars already provide them and do not require this control. This is true of a multiline System.Windows.Forms.TextBox control, a System.Windows.Forms.ListBox, and a System.Windows.Forms.ComboBox, for example.

You can use this control to implement scrolling in containers that do not provide their own scroll bars such as a System.Windows.Forms.PictureBox or for user input of numeric data. The numeric data can be displayed in a control or used in code. The ScrollBar.Minimum and ScrollBar.Maximum properties determine the range of values the user can select. The ScrollBar.LargeChange property determines the effect of clicking within the scroll bar but outside the scroll box. The ScrollBar.SmallChange property determines the effect of clicking the scroll arrows at each end of the control.

Requirements

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