winform 操作panel滚动条

Panel控件还有一个AutoScoll属性,直接修改为true

设置panel垂直滚动条到前

 pInfo.VerticalScroll.Value = pInfo.VerticalScroll.Minimum;


设置panel垂直滚动条到后

pInfo.VerticalScroll.Value = pInfo.VerticalScroll.Maximum;


你可能感兴趣的:(winform 操作panel滚动条)