By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,841 Members | 1,675 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,841 IT Pros & Developers. It's quick & easy.

Window size and positioning - how to define?

P: n/a
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.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <de**@deko.com> wrote in message
news:2x*****************@newssvr13.news.prodigy.co m...
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.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.