How to set the AutoScrollPosition to the bottom most position?
I tried
panel.AutoScrollPosition = new Point(0, panel.Height);
开发者_如何学运维
but it didn't work.
You can use the panel's VerticalScroll.Maximum
-property:
panel.AutoScrollPosition = new Point(
Math.Abs(panel.AutoScrollPosition.X),
panel.VerticalScroll.Maximum);
精彩评论