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!

ScrollableControl Class

Defines a base class for controls that support auto-scrolling behavior.

Object
   MarshalByRefObject
      MarshalByRefComponent
         Control
            RichControl
               ScrollableControl

[Visual Basic]
Public Class ScrollableControl
   Inherits RichControl
[C#]
public class ScrollableControl : RichControl
[C++]
public __gc class ScrollableControl : public RichControl
[JScript]
public class ScrollableControl extends RichControl

Remarks

You do not typically use this class directly. The ContainerControl and Panel classes inherit from this class.

The ScrollableControl class acts as a base class for controls which require the ability to scroll. To allow a control to display scroll bars as needed, set the AutoScroll property to true. To select which scroll bars should be visible, set the VScroll and HScroll properties. If either property is set to false, the appropriate scroll bar will not be visible even if the AutoScroll property is set to true.

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

Example [Visual Basic]

The following example instantiates and initializes a ScrollableControl.

[Visual Basic]

' Instantiate a ScrollableControl.
Private ScrollableControl1 As System.WinForms.ScrollableControl
Private Sub MySub()
   ' Initialize the ScrollableControl. 
   ScrollableControl1 = New System.WinForms.ScrollableControl
End Sub

See Also

ScrollableControl Members | System.WinForms Namespace