System.Windows.Forms.ScrollableControl.Scroll Event

Occurs when the user or code scrolls through the client area.

Syntax

public event ScrollEventHandler Scroll

Remarks

The ScrollableControl.Scroll event occurs when the user scrolls through the client area by interacting with the scroll bars, or when the user navigates between controls and the active control scrolls into view. The ScrollableControl.Scroll event also occurs when you write code, such as setting the ScrollableControl.AutoScrollPosition property, that scrolls through the client area.

You can use the ScrollEventArgs.ScrollOrientation property in your event handler to determine the scroll bar orientation for the ScrollableControl.Scroll event.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0