Maximizing a form because previous form is maximized

D

Darrell

A consistent problem I have is that when a form is
opened, it will be maximized if the form I am leaving is
maximized. This seems to happen regardless of AutoResize
and AutoCenter settings. How do I make certain that a
form will return to its last-saved size, even when the
previous window was maximized?

Thanks.
 
W

Wayne Morgan

In the forms Open event try

DoCmd.Restore

However, this will affect all sub windows that are open, just as when one is
maximized, they're all maximized. Another option is to maximize the forms
you want maximized when you open them and do a restore in their close event.
 
D

Darrell

Thanks! That clarifies a concept for me. They are either
ALL maximized or ALL restored.
 

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