Identical forms not AutoCentering on top of each other

D

Darrell

I have a main switchboard (the startup object) and a reports switchboard
which is opened from a command button on the main form. The two forms are
identically sized with all form-level properties identical (except the
caption). But, when I open the report switchboard with the command button, it
opens slightly lower than the main switchboard. Does anyone have any idea why?

Thanks for any help ahead of time.
 
J

Jeanette Cunningham

Hi Darrell
I have noticed this too.
I usually hide the other form until it is needed, that way there is no
annoying 'double vision'.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
D

Darrell

Jeanette,

Thanks. I will employ that. However, I would still like to know why this
happens since it will still result in a slight "jog" in the user's line of
sight when they go back and forth. Besides, it's just nice to understand
something. One simply feels more in control when behavior is understood.

(Sorry for the delayed thanks. I was out of town for a long weekend, so
didn't re-check the post until today.)
 
J

Jeanette Cunningham

the following code can be placed in the Reports form's Open event:

With Forms![Main Switchboard]
Me.Move .WindowLeft, .WindowTop
End With

Replace "Main Switchboard" with the name of the main switchboard form.

Note: that code works in A2003. I don't know about earlier versions,
except that I'm pretty sure it doesn't work in Access 97 or before.

You can also try making the second form wider than the first, sometimes
that fixes the problem.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
D

Darrell

Jeanette,

Once again, I don't get to visit the site every day so sometimes my
responses are a bit delayed, but that has nothing to do with how much I
appreciate the feedback. Thanks.

I will implement the below code. It still doesn't answer why it happens. Is
this a bug? It's okay if it is; it just would fill that little hole in my
brain, if you know what I mean. The form being too narrow might begin to get
at an answer. Would this mean that both forms are too narrow, or that both
being identical widths is the problem?

Thanks.

Jeanette Cunningham said:
the following code can be placed in the Reports form's Open event:

With Forms![Main Switchboard]
Me.Move .WindowLeft, .WindowTop
End With

Replace "Main Switchboard" with the name of the main switchboard form.

Note: that code works in A2003. I don't know about earlier versions,
except that I'm pretty sure it doesn't work in Access 97 or before.

You can also try making the second form wider than the first, sometimes
that fixes the problem.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


Darrell said:
Jeanette,

Thanks. I will employ that. However, I would still like to know why this
happens since it will still result in a slight "jog" in the user's line of
sight when they go back and forth. Besides, it's just nice to understand
something. One simply feels more in control when behavior is understood.

(Sorry for the delayed thanks. I was out of town for a long weekend, so
didn't re-check the post until today.)
 
D

Darrell

That code works nicely. Of course, if you move the Main Switchboard around
manually, then click to access the Reports switchboard - which has only been
hidden so that the Open event does not fire - they are now in 2 different
places again. But, that's a level of detail I'm not going to worry about
right now. This will work.

Any further insights on the reason for AutoCenter not working would be
welcomed.

Thanks, Jeanette.

Jeanette Cunningham said:
the following code can be placed in the Reports form's Open event:

With Forms![Main Switchboard]
Me.Move .WindowLeft, .WindowTop
End With

Replace "Main Switchboard" with the name of the main switchboard form.

Note: that code works in A2003. I don't know about earlier versions,
except that I'm pretty sure it doesn't work in Access 97 or before.

You can also try making the second form wider than the first, sometimes
that fixes the problem.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


Darrell said:
Jeanette,

Thanks. I will employ that. However, I would still like to know why this
happens since it will still result in a slight "jog" in the user's line of
sight when they go back and forth. Besides, it's just nice to understand
something. One simply feels more in control when behavior is understood.

(Sorry for the delayed thanks. I was out of town for a long weekend, so
didn't re-check the post until today.)
 
J

Jeanette Cunningham

Further insights - I'm not aware of any.
Here is a link to descriptions of how some people set up their interfaces.
http://groups.google.com/group/micr...?lnk=gst&q=flow+allen+browne#1a257dcfa497a452

You will find some discussion of making forms open on top of another and
keeping them in the same place by Jeff Conrad.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


Darrell said:
That code works nicely. Of course, if you move the Main Switchboard around
manually, then click to access the Reports switchboard - which has only
been
hidden so that the Open event does not fire - they are now in 2 different
places again. But, that's a level of detail I'm not going to worry about
right now. This will work.

Any further insights on the reason for AutoCenter not working would be
welcomed.

Thanks, Jeanette.

Jeanette Cunningham said:
the following code can be placed in the Reports form's Open event:

With Forms![Main Switchboard]
Me.Move .WindowLeft, .WindowTop
End With

Replace "Main Switchboard" with the name of the main switchboard form.

Note: that code works in A2003. I don't know about earlier versions,
except that I'm pretty sure it doesn't work in Access 97 or before.

You can also try making the second form wider than the first, sometimes
that fixes the problem.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


Darrell said:
Jeanette,

Thanks. I will employ that. However, I would still like to know why
this
happens since it will still result in a slight "jog" in the user's line
of
sight when they go back and forth. Besides, it's just nice to
understand
something. One simply feels more in control when behavior is
understood.

(Sorry for the delayed thanks. I was out of town for a long weekend, so
didn't re-check the post until today.)

:

Hi Darrell
I have noticed this too.
I usually hide the other form until it is needed, that way there is no
annoying 'double vision'.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


I have a main switchboard (the startup object) and a reports
switchboard
which is opened from a command button on the main form. The two
forms
are
identically sized with all form-level properties identical (except
the
caption). But, when I open the report switchboard with the command
button,
it
opens slightly lower than the main switchboard. Does anyone have any
idea
why?

Thanks for any help ahead of time.
 
D

Darrell

Thanks, Jeanette. I appreciate your help. If I get a sec, I'll check out the
link provided.

Jeanette Cunningham said:
Further insights - I'm not aware of any.
Here is a link to descriptions of how some people set up their interfaces.
http://groups.google.com/group/micr...?lnk=gst&q=flow+allen+browne#1a257dcfa497a452

You will find some discussion of making forms open on top of another and
keeping them in the same place by Jeff Conrad.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


Darrell said:
That code works nicely. Of course, if you move the Main Switchboard around
manually, then click to access the Reports switchboard - which has only
been
hidden so that the Open event does not fire - they are now in 2 different
places again. But, that's a level of detail I'm not going to worry about
right now. This will work.

Any further insights on the reason for AutoCenter not working would be
welcomed.

Thanks, Jeanette.

Jeanette Cunningham said:
the following code can be placed in the Reports form's Open event:

With Forms![Main Switchboard]
Me.Move .WindowLeft, .WindowTop
End With

Replace "Main Switchboard" with the name of the main switchboard form.

Note: that code works in A2003. I don't know about earlier versions,
except that I'm pretty sure it doesn't work in Access 97 or before.

You can also try making the second form wider than the first, sometimes
that fixes the problem.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


Jeanette,

Thanks. I will employ that. However, I would still like to know why
this
happens since it will still result in a slight "jog" in the user's line
of
sight when they go back and forth. Besides, it's just nice to
understand
something. One simply feels more in control when behavior is
understood.

(Sorry for the delayed thanks. I was out of town for a long weekend, so
didn't re-check the post until today.)

:

Hi Darrell
I have noticed this too.
I usually hide the other form until it is needed, that way there is no
annoying 'double vision'.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


I have a main switchboard (the startup object) and a reports
switchboard
which is opened from a command button on the main form. The two
forms
are
identically sized with all form-level properties identical (except
the
caption). But, when I open the report switchboard with the command
button,
it
opens slightly lower than the main switchboard. Does anyone have any
idea
why?

Thanks for any help ahead of time.
 

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