protected virtual void OnHScroll(ScrollEventArgs e) { // repaint the moved tabs this.Invalidate(); // Raise the event if (this.HScroll != null){ this.HScroll(this, e); } if (e.Type == ScrollEventType.EndScroll){ this._oldValue = e.NewValue; } }