Positioning Forms

W

WSF

Access 97
I would like to be able to position two forms next to each other within
the app window.
Is there a way to set each forms top/left position in code?

Your help gratefully appreciated.
WSF
 
M

Marshall Barton

WSF said:
Access 97
I would like to be able to position two forms next to each other within
the app window.
Is there a way to set each forms top/left position in code?


You can use the MoveSize method. Here's a simple example:

Forms!firstform.SetFocus
DoCmd.MoveSize 50,100
Forms!secondform.SetFocus
DoCmd.MoveSize 50 + 170 + Forms!firstform.Width, 100

You'll have to determine the left (50) and top (100) values
you want to use and play around with the 170 depending on
how wide the form borders are and how close together you
want the forms.
 

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

Top