By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,899 Members | 1,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,899 IT Pros & Developers. It's quick & easy.

Query size of scrollbars

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
See
SystemInformation.VerticalScrollBarWidth
SystemInformation.HorizontalScrollBarHeight

--
Tim Wilson
..Net Compact Framework MVP

"felix" <fe***@news.com> wrote in message
news:OX**************@TK2MSFTNGP10.phx.gbl...
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

Nov 16 '05 #2

P: n/a
Yes, perfect. That's exactly the class I was searching for. Thanks!!

Greetnigs,
Felix

Tim Wilson wrote:
See
SystemInformation.VerticalScrollBarWidth
SystemInformation.HorizontalScrollBarHeight

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.