Restore or maximize after closing a form?

M

M Skabialka

Some of the users of my ACC2003 database like to maximize the forms, others
leave them where I place them with MoveSize to the top left corner.
One form they use is a calendar which I placed on its own tiny form so they
can pop it up for reference, then close it. But those people who maximize
the first and all subsequent open forms get this tiny form maximized also.
What command can I use to restore this form when opened (DoCmd.restore) but
then when closing put the calling form back to either its maximized or
restored size based on the user preferences?
 
D

Dennis

Open the Calendar form as a dialog then it does not matter if the underlying
form is maximized or not

DoCmd.OpenForm "Calendar Form", acNormal, , , acFormPropertySettings, acDialog
 
M

M Skabialka

Thanks, this will work. But is there a way to find out if a form is
maximized or not, a property you can access during run time?
 
C

Clif McIrvin

M Skabialka said:
Thanks, this will work. But is there a way to find out if a form is
maximized or not, a property you can access during run time?

It'll be interesting to see what other replies you get to this query
<grin>.

Check out the various form object window properties in the help files.
It looks like you can get and set size, but doesn't give you what you
want directly.

API calls maybe?
 

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