Here is an API function that will let you maximize, minimize, or restore the
Access window. You'll need to restore it before you size it.
http://www.mvps.org/access/api/api0019.htm
Next, here is information on sizing a window.
http://vb.mvps.org/hardcore/html/windowpositionsize.htm http://vb.mvps.org/articles/fe199509.pdf -- item #5
--
Wayne Morgan
MS Access MVP
"deko" <deko@deko.com> wrote in message
news:2x98e.4740$dT4.4594@newssvr13.news.prodigy.co m...[color=blue]
> When a user opens my Access database application, I would like the
> application window to be a certain size (but not maximized). Currently,
> when my app is first opened, the application window defaults to whatever
> size the user sized it to last time he used Access. This results in my
> app's interface not looking right. Of course the user can resize the
> window, but many users don't know how or don't have the inclination to
> adjust it. This results in the interface getting blamed for being
> "out-of-center" or requiring scroll bars, etc.
>
> If I want to control the window size and position of the Access
> application
> window when my app opens, do I need to use the Windows API? I will
> research
> this and find out how to do it, but if someone can point me in the right
> direction or offer some code samples, that would be a big help.
>
> Thanks.
>
>[/color]