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