Query size of scrollbars

  • Thread starter Thread starter felix
  • Start date Start date
F

felix

Hi,

I've a UserControl with the property AutoScroll = true. Thus, when
child-controls overlap the visible area, the scrollbars are shown.

How do I query the size or width of the scrollbars? In my
DisplaySettings of windows I can set the width of the scrollbars
(currently 17px on my machine). But I can't find where to get this value
from in C#.

Thanks for every reply.
Greetings,
Felix
 
See
SystemInformation.VerticalScrollBarWidth
SystemInformation.HorizontalScrollBarHeight
 
Back
Top