如何获取DataGridView控件上的滚动条的大小? [英] How can I get the size of scrollbars on a DataGridView control?
本文介绍了如何获取DataGridView控件上的滚动条的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取显示在控件上的垂直滚动条的水平和/或宽度的高度(例如DataGridView)?
How can I get the height of horizontal and/or width of vertical scrollbar that appears on control (e.g. DataGridView)?
推荐答案
p>使用:
SystemInformation.HorizontalScrollBarHeight;
SystemInformation.VerticalScrollBarWidth;
这篇关于如何获取DataGridView控件上的滚动条的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文