Query size of scrollbars

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • felix

    Query size of scrollbars

    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
  • Tim Wilson

    #2
    Re: Query size of scrollbars

    See
    SystemInformati on.VerticalScro llBarWidth
    SystemInformati on.HorizontalSc rollBarHeight

    --
    Tim Wilson
    ..Net Compact Framework MVP

    "felix" <felix@news.com > wrote in message
    news:OX6qFH$HFH A.4076@TK2MSFTN GP10.phx.gbl...[color=blue]
    > 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[/color]


    Comment

    • felix

      #3
      Re: Query size of scrollbars

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

      Greetnigs,
      Felix

      Tim Wilson wrote:[color=blue]
      > See
      > SystemInformati on.VerticalScro llBarWidth
      > SystemInformati on.HorizontalSc rollBarHeight
      >[/color]

      Comment

      Working...