¿ Usable Width of a Panel, i.e. Panel.Width - VerticalScrollBar.Width ?

E

eBob.com

How do you determine the usable width of a Panel? For example, if you want
to add a TextBox to the Panel and make it as wide as possible but not so
wide that it overlaps with the vertical scroll bar.

In other words, how do you determine the width of the vertical scroll bar?

Thanks, Bob
 
A

Armin Zingler

eBob.com said:
How do you determine the usable width of a Panel? For example, if
you want to add a TextBox to the Panel and make it as wide as
possible but not so wide that it overlaps with the vertical scroll
bar.

In other words, how do you determine the width of the vertical scroll
bar?

See it's ClientSize/ClientRectangle properties.


Armin
 
J

Jack Jackson

How do you determine the usable width of a Panel? For example, if you want
to add a TextBox to the Panel and make it as wide as possible but not so
wide that it overlaps with the vertical scroll bar.

In other words, how do you determine the width of the vertical scroll bar?

Thanks, Bob

I would think the ClientRectangle property would do that.
 

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