Query size of scrollbars

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
 
T

Tim Wilson

See
SystemInformation.VerticalScrollBarWidth
SystemInformation.HorizontalScrollBarHeight
 
F

felix

Yes, perfect. That's exactly the class I was searching for. Thanks!!

Greetnigs,
Felix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top