autocenter controls on form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a rather simplistic problem that I can't find a solution to! I have a
form that I want to maximize every time it opens (which I have achieved
through DoCmd.Maximize in the Form_Load event), but I also want that all the
controls in the form, staying positioned relative to each other, center
themselves horizontally on the form once it is resized. Maybe I can set a
property that always makes them stay in the horizontal center, which is also
great. How could I accomplish this?
Thank you!
Kriti
 
Hi Alex,

Thanks so much for replying. Is there a way to do this for ALL the controls
on the form? I don't want each one individually centered on the form, of
course. I need their "group" centered. So would it be more helpful if I
grouped them all? Would there be a way then to refer to the entire group and
use the code you just posted with the whole group?

Thank you,
Kriti
 
Back
Top