PC Review


Reply
Thread Tools Rate Thread

border width from Borderstyle property

 
 
--== Alain ==--
Guest
Posts: n/a
 
      10th Feb 2007
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.
 
Reply With Quote
 
 
 
 
ClayB
Guest
Posts: n/a
 
      10th Feb 2007
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.

 
Reply With Quote
 
--== Alain ==--
Guest
Posts: n/a
 
      10th Feb 2007
thx Clay.

I will try it.

Al.

ClayB wrote:
> 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.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Bound Text Box Border Width Property Screws Up Tab Order Dan Microsoft Access Form Coding 0 28th Sep 2011 07:43 PM
Could not set BorderStyle property b Microsoft Excel Programming 0 23rd Sep 2009 03:24 PM
Image adding border-width:0; when I do not specify the BorderWidth property Nathan Sokalski Microsoft ASP .NET 1 7th Nov 2007 04:30 PM
Find the border size of a BorderStyle active Microsoft VB .NET 4 9th Jun 2007 02:10 PM
Drop Down List Border Width vs Text Box Border Width Coder Microsoft ASP .NET 1 24th Jun 2006 02:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:12 PM.