|
-
May 29th, 2006, 10:56 AM
#1
Form's useable width and height
Hi all,
i know how to get a form's width and height,
but how do I get the dimensions/offsets of what I would like to draw on, the usually grey area. I mean what is the height of the title bar, is it always the same? And what about the borders.
This way I can set my graphicsobject to these bounds for easier drawing.
Kind regards,
Jef
-
May 29th, 2006, 10:54 PM
#2
Re: Form's useable width and height
u can use System.Windows.Forms.SystemInformation properties to get this information, properties like CaptionHeight, FrameBorderSize
-
May 30th, 2006, 04:54 AM
#3
Re: Form's useable width and height
Each control has a ClientRectangle property that gives you the bounds that you are after.
Useful? Then click on (Rate This Post) at the top of this post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|