Positioning Forms

  • Thread starter Thread starter WSF
  • Start date Start date
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
 
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.
 
Back
Top