Initializes a new instance of the HScrollBar class.
[Visual Basic] Public Sub New() [C#] public HScrollBar(); [C++] public: HScrollBar(); [JScript] public function HScrollBar();
The scroll bar is aligned horizontally.
The following example instantiates an HScrollBar.
[Visual Basic]
' Instantiate a HScrollBar. Private HScrollBar1 as System.WinForms.HVScrollBar Private Sub MySub() ' Initialize a new HScrollBar. Form1.HScrollBar1 = New System.WinForms.HScrollBar ' Set the Size and Location of the scroll bar. HScrollBar1.Size = New System.Drawing.Size(75,16) HScrollBar1.Location = New System.Drawing.Point(0,184) ' Add the scrollbar to the form. Form1.Controls.Add(HScrollBar1) End Sub
HScrollBar Class | HScrollBar Members | System.WinForms Namespace | ScrollBar | VScrollBar