Resizing a form

  • Thread starter Thread starter Bernard Bourée
  • Start date Start date
B

Bernard Bourée

I have a lot of controls on a form and to to be able to resize it in order
to take into account different screen definition.
The way I'm going to code it is to look at the maximum size of the form and
to resize each control in order to fit with the form size.

Is there a better way to do it ?
 
Hi,

You might want to try out Anchoring the controls.

Use the Anchor property of each control to 'attach' them to the form's
edges, so that they would resize when the form get's resized.

HTH,
Rakesh Rajan
 
Rakesh
But if I understand correctly the property of Anchor, the distance between
the control and the form border is fixed and not proportional to the form
size. So it won't work.
 
Back
Top