SplitContainer TheSC = new SplitContainer(); TheSC.Panel1.AutoScroll = true; TheSC.Panel1.Scroll += new ScrollEventHandler(Panel1_Scroll); void Panel1_Scroll(object sender, ScrollEventArgs e) { Panel ThePanel = (Panel)sender; int CheckValue1 = e.NewValue; int CheckValue2 = e.OldValue; Type TheType = e.GetType(); if (e.ScrollOrientation == ScrollOrientation.HorizontalScroll) { } }
if(e.NewValue==ThePanel.HorizontalScroll.Maximum) { //Can put your code here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)