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
 
Hi,
not sure that you can center group such way. you can either center each
control manually, or you can put your control on anther form, insert it as a
subform on your main form and center subform the same way I suggested

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
 

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

AutoCenter Property 8
Access Form Refresh 1
Switchboard Size 1
Maximising main form using DoCmd 4
Keeping a form at Maximize 1
Form Position Option 6
Center the forms controls on screen on maximize 0
Access 2 Digit year in Access Text Box 3

Back
Top