Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Form Resize OnLoad

Geek News

Form Resize OnLoad
"Presto" <presto__NOSPAM[ at ]prestoweb.net> 11/26/2008 9:55:00 PM
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.


Re: Form Resize OnLoad
Marshall Barton <marshbarton[ at ]wowway.com> 11/27/2008 12:06:39 AM
Presto wrote:

[Quoted Text]
>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.

--
Marsh
MVP [MS Access]
Re: Form Resize OnLoad
"Presto" <presto[ at ]prestoweb.net> 11/27/2008 8:19:57 PM
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!

"Marshall Barton" <marshbarton[ at ]wowway.com> wrote in message
news:jkori49ri12gc5iuqt0ke57i4mv4stjruo[ at ]4ax.com...
[Quoted Text]
> Presto wrote:
>
>>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.
>
> --
> Marsh
> MVP [MS Access]

Re: Form Resize OnLoad
pddxxx[ at ]gmail.com 11/28/2008 3:49:33 PM
Our window manipulation examples database might help:
http://www.peterssoftware.com/winmanip.htm
Re: Form Resize OnLoad
Marshall Barton <marshbarton[ at ]wowway.com> 11/28/2008 6:24:43 PM
Presto wrote:

[Quoted Text]
>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?


I have never needed to do that, but I think you can use the
code at http://www.mvps.org/access/api/api0012.htm

--
Marsh
MVP [MS Access]
Re: Form Resize OnLoad
"Presto" <presto__NOSPAM[ at ]prestoweb.net> 11/29/2008 5:54:49 PM
This app has exactly what I was looking for.
Thank you!!!

<pddxxx[ at ]gmail.com> wrote in message
news:fb09d317-5de4-4b9e-a99e-a99dd5cf3aea[ at ]z6g2000pre.googlegroups.com...
[Quoted Text]
> Our window manipulation examples database might help:
> http://www.peterssoftware.com/winmanip.htm


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net