473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.
Nov 13 '05 #1
1 9473
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
6
by: Giuseppe Chielli | last post by:
Hi! I'm new to this newsgroup. I have a problem: I need to get the window size via Javascript; I usually use window.innerWidth or document.body.clientWidth with IE and Firefox and it properly...
7
by: Lauren Quantrell | last post by:
Is there a way in code to freeze the size of the MS Access window or to prevent it from being sized? Thanks. lq
1
by: Kenny | last post by:
The following link will take you to menu of photo galleries. If you open any of the photo galleries you will see that each contains thumbnails. When a thumbnail is clicked, the full-sized version...
5
by: Just D. | last post by:
How can we get the browser window size from C# codebehind? What's the easiest way to do that? Just D.
0
by: jkristia | last post by:
I'm completely lost right now, and can't figure out how to solve this problem. I want my app and dialogs to show up in the same position and same size as when they were closed. For that I do...
7
by: John Fox | last post by:
Dear All, How do I set the size of the window that is showing the database forms? can't find any helps on it. John Fox
19
by: sphinney | last post by:
My company is in the process of upgrading everyone to Access 2007. Since my machine was upgraded I've been highly frustrated with an apparent random behaviour byAccess that I can't understand. It...
3
by: Annette Block | last post by:
I'm rather new in JavaScript, but I have some experience in php. I learned it's rather easy to open a window of a specified size with JavaScript, that you need to specify the opened file, but I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.