February 16th, 2012, 04:14 AM
Join Date: Oct 2005
Time spent in forums: 6 h 5 m 10 sec
Reputation Power: 0
I have a panel with scrollbars containing an image 8000 pixels wide. Setting max to 8000 does not allow me to scroll to the right hand edge - basically it stops short. I have read that the HorizontalScroll max should be set to Size of the image plus largeChange but when I do this
// LargeChange is typically one page.
int largeChangeHorizontal = panelMainMapScroller.Width;
int maxHorizontal = panelMainMap.Width + largeChangeHorizontal;
// SmallChange it typically 1%.
int smallChangeHorizontal = Math.Max((int)(maxHorizontal / 100), 1);
panelMainMapScroller.HorizontalScroll.Minimum = 0;
panelMainMapScroller.HorizontalScroll.Maximum = maxHorizontal;
Maximum is not increased and still set at = 7999
Is there a criteria for allowing maximum to be reset?