Scrolling to end

May 3, 2013 at 10:51 AM
How can I programmatically scroll the HtmlPanel to the beginning/to the end?

Thanks!
Developer
May 5, 2013 at 7:17 AM
Set vertical scroll to top and horizontal to left:
_htmlPanel.AutoScrollPosition = new Point(_htmlPanel.HorizontalScroll.Minimum, _htmlPanel.VerticalScroll.Minimum);

Set vertical to bottom and horizontal to right:
_htmlPanel.AutoScrollPosition = new Point(_htmlPanel.HorizontalScroll.Maximum - _htmlPanel.HorizontalScroll.LargeChange, _htmlPanel.VerticalScroll.Maximum - _htmlPanel.VerticalScroll.LargeChange);
Marked as answer by ArthurTep on 3/10/2014 at 1:18 AM