Connecting Tech Pros Worldwide Help | Site Map

Window size and positioning - how to define?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 08:59 AM
deko
Guest
 
Posts: n/a
Default Window size and positioning - how to define?

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.



  #2  
Old November 13th, 2005, 08:59 AM
Wayne Morgan
Guest
 
Posts: n/a
Default Re: Window size and positioning - how to define?

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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.