tags:

views:

1213

answers:

2

As you know, one can customize the width of the scrollbar width in Display Properties -> Appearance -> Advanced -> Item: ScrollBar. The default value is 17. However, I can't assume this is always the case, is it possible for me to retrieve this value?

+7  A: 

Look at the System.Windows.Forms.SystemInformation class.

leppie
+3  A: 

Vertical Scroll Bar Width

System.Windows.Forms.SystemInformation.VerticalScrollBarWidth;