开发者

Panel AutoScroll position setting

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜