Resizing Window Calculations

  • Thread starter Thread starter No One
  • Start date Start date
N

No One

I would like to resize a window (form) to be slightly larger than the
area used by controls inside. I know how much padding I want, but how
can I find the size of the window items like the border and the bar at
the top (place where the form name is, buttons to maximize/minimize,
etc)?

Thanks in advance.
 
Subtract the dimensions of the form's ClientRectangle from those of the form
(from its Size property) .

HTH,
Tom Dacon
Dacon Software Consulting
 

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

Similar Threads


Back
Top