NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

VScrollBar Constructor

Initializes a new instance of the VScrollBar class.

[Visual Basic]
Public Sub New()
[C#]
public VScrollBar();
[C++]
public: VScrollBar();
[JScript]
public function VScrollBar();

Remarks

The scroll bar is aligned vertically.

Example [Visual Basic]

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

See Also

VScrollBar Class | VScrollBar Members | System.WinForms Namespace