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!

HScrollBar Constructor

Initializes a new instance of the HScrollBar class.

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

Remarks

The scroll bar is aligned horizontally.

Example [Visual Basic]

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

See Also

HScrollBar Class | HScrollBar Members | System.WinForms Namespace | ScrollBar | VScrollBar