Width of scrollbar in control.

  • Thread starter Thread starter Keith Rebello
  • Start date Start date
K

Keith Rebello

How do I obtain the width of a scrollbar on a Windows Forms control (eg. a
ListView control)?
 
Keith,

SystemInformation.VerticalScrollBarWidth or
SystemInformation.HorizontalScrollbarHeight (depending).
All scrollbars have the same size by default.

By the way, a quick search at groups.google.com would have given you the
answer. :^)
 
Hi,

Trace.WriteLine(SystemInformation.VerticalScrollBarWidth)
Trace.WriteLine(SystemInformation.HorizontalScrollBarHeight)

Ken
------------------
 
Back
Top