Represents the method that handles the Scroll event of a ScrollBar, TrackBar, or DataGrid.
[Visual Basic] Public Delegate Sub ScrollEventHandler( _ ByVal sender As Object, _ ByVal e As ScrollEventArgs _ ) [C#] public delegate void ScrollEventHandler( object sender, ScrollEventArgs e ); [C++] public __gc __delegate void ScrollEventHandler( Object* sender, ScrollEventArgs* e );
[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.
The declaration of your event-handling method must have the same parameters as the ScrollEventHandler delegate declaration.
When you create a ScrollEventHandler delegate, you identify the method that will handle the event. For an overview, see XXX.
To associate the Scroll event with your event-handling method, call the AddOnScroll method of the control. The event-handling method is called whenever the event occurs, until you call the RemoveOnScroll method of the control.
Note Delegates are the underlying mechanism for events, but most of the time you won't use them directly. For details, see XXX.
Namespace: System.WinForms
Assembly: System.WinForms.dll