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
Re: Form's useable width and height
u can use System.Windows.Forms.SystemInformation properties to get this information, properties like CaptionHeight, FrameBorderSize
Re: Form's useable width and height
Each control has a ClientRectangle property that gives you the bounds that you are after.