Form Resize OnLoad

P

Presto

I have my frmMain form maximized on load. I need it to stay that way.
When I open any other forms, they all maximize too.

I added code like this to set the form's size but they all still load
maximized anyway.

InsideHeight = 7200 ' Five inches high
InsideWidth = 4320 ' Three inches wide

I tried to add DoCmd.Restore but this restores ALL my forms.
 
M

Marshall Barton

Presto said:
I have my frmMain form maximized on load. I need it to stay that way.
When I open any other forms, they all maximize too.

I added code like this to set the form's size but they all still load
maximized anyway.

InsideHeight = 7200 ' Five inches high
InsideWidth = 4320 ' Three inches wide

I tried to add DoCmd.Restore but this restores ALL my forms.


That's the way the Windows MDI (multiple document interface)
works.

You can get the effect you want in three(?) ways. Two are
to make all the all the other forms popup forms or to open
them in dialog mode. The other way is to not maximize the
main form and instead set its size (MoveSize method) to
something close to the full screen.
 
P

Presto

Is there a way to find the size of the Access screen and then set the
frmMain a certain percentage (99% of height 99% of width of Access screen?
:)
Then if they resize, my main form resizes too.
I have a splash screen that says "Best Viewed at Full Screen" so
*rasberries*
to then if they make it too small and the form gets messed up. :)

Anyone know how to do the above?

Oh and I did find a sample app from Lebans Holdings to help with
the size dimentions for a form. http://www.lebans.com/products.htm - great
site!
 

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