What is the width of UserControl vertical scroll bar

S

SamSpade

I need to set the client size width of a user control and leave room for a
vertical scroll bar, but I don't know how wide it is.

Seems I remember once checking system info for the width but don't remember
what I did.

More importantly, is there a newer way to determine the width?


Thanks for any help
 
K

Ken Tucker [MVP]

Hi,

The systeminformation class has that information.
Debug.WriteLine(SystemInformation.VerticalScrollBarWidth)



Ken
 

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