ScrollableControl.ScrollControlIntoView Method (Control)
.NET Framework (current version)
Scrolls the specified child control into view on an auto-scroll enabled control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- activeControl
-
Type:
System.Windows.Forms.Control
The child control to scroll into view.
The AutoScroll property must be set to true, and at least one of the scroll bars, horizontal or vertical, must also be visible, for the ScrollControlIntoView method to have an effect. To make the horizontal and vertical scroll bars visible, the HScroll and VScroll properties, respectively, must be set to true.
If the activeControl parameter is not a child control, no action takes place.
This method may raise the Scroll event.
.NET Framework
Available since 1.1
Available since 1.1
Show: