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
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.
Namespace: System.WinForms
Assembly: System.WinForms.dll
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