border width from Borderstyle property

A

--== Alain ==--

Hi,

How can i get the client rectangle usable based on BorderStyle value ?

for example :
- if BorderStyle is set to none, the client rectangle usable is the
whole client rect of my component - Vertical scroll bar (for width) -
Horizontal Scroll bar (for height).
- if borderStyle is set to FixedSingle, the client rectangle usable is
the whole client rect of my component - 2 x (border width) setup by
component - Vertical scroll bar (for width) - Horizontal Scroll bar (for
height).

And so on.

thanks a lot,

Al.
 
C

ClayB

Maybe the static properties found in the
System.Windows.Forms.SystemInformation class will be of use to you.
There is also a Control.ClientRectangle property.

===============
Clay Burch
Syncfusion, Inc.
 

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