Click to See Complete Forum and Search --> : Form's useable width and height


Jef Patat
May 29th, 2006, 10:56 AM
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

aniskhan
May 29th, 2006, 10:54 PM
u can use System.Windows.Forms.SystemInformation properties to get this information, properties like CaptionHeight, FrameBorderSize

Norfy
May 30th, 2006, 04:54 AM
Each control has a ClientRectangle property that gives you the bounds that you are after.