namespace System.Windows.Forms { public class ScrollEventArgs : EventArgs { public ScrollOrientation ScrollOrientation { get; } public ScrollEventType Type { get; } public int NewValue { get; set; } public int OldValue { get; } = -1; public ScrollEventArgs(ScrollEventType type, int newValue) { Type = type; NewValue = newValue; } public ScrollEventArgs(ScrollEventType type, int newValue, ScrollOrientation scroll) { Type = type; NewValue = newValue; ScrollOrientation = scroll; } public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue) { Type = type; NewValue = newValue; OldValue = oldValue; } public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll) { Type = type; NewValue = newValue; ScrollOrientation = scroll; OldValue = oldValue; } } public delegate void ScrollEventHandler(object sender, ScrollEventArgs e); }