Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ScrollableControl.Scroll Event

Note: This event is new in the .NET Framework version 2.0.

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

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public event ScrollEventHandler Scroll
/** @event */
public void add_Scroll (ScrollEventHandler value)

/** @event */
public void remove_Scroll (ScrollEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

The 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 Scroll event also occurs when you write code, such as setting the AutoScrollPosition property, that scrolls through the client area.

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

For more information about handling events, see Consuming Events.

System.Windows.Forms.ScrollEventArgs.Scroll

AutoScrollPosition

ScrollControlIntoView

ScrollToControl

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft