positioning Forms

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

Guest

I have three seperate entry forms which contain linked information. For ease
of use of the end use I want to keep them as seperate forms (each has a lot
of information in them, and may or may not be needed to be open). I have the
code in place which keeps them all synchronized while open, what I am looking
for is a way to position the forms so that they are not overlapping and they
open side-by-side to eachother.
 
you can use the movesize action.
you can also use the .left .top and .width in form_open()
 
I have three seperate entry forms which contain linked information. For ease
of use of the end use I want to keep them as seperate forms (each has a lot
of information in them, and may or may not be needed to be open). I have the
code in place which keeps them all synchronized while open, what I am looking
for is a way to position the forms so that they are not overlapping and they
open side-by-side to eachother.

Code each form's Open Event:
DoCmd.MoveSize X*1440, Y*1440

Where X and Y are values (in inches) from the Left and from the top
that you wish the form to open.

For example:

DoCmd.MoveSize 1.5*1440. 3*1440

will open the form 1.5 inches from the left of the screen, 3 inches
down from the top.
All measurements must be in Twips, 1440 per inch.
 
I think that I may not have expressed everything clearly -- the forms may or
may not be open and I want to position any of the open forms to be next to
eachother regardless of the resolution on the screen. I would then
reposition the forms when any of them closed. Is movesize that flexible? is
there any way to detect where the borders of a for are to position it
relative to the open form?
 
Back
Top