B
Bob Vance
Where can I locate the form dimensions that will fit a 19in 24in wide in
screen
I have worked out from my 17in 26cm Wide and 17cm Height!
screen
I have worked out from my 17in 26cm Wide and 17cm Height!
Allen Browne said:Bob, you would need to make API calls to ask Windows about the screen
resolution, but IMHO this is not a productive thing to do. If yuo want to
proceed anyway, search for the VB calls here:
http://vbnet.mvps.org/
Mostly, they work in VBA without modification.
You may need to consider:
- the number of monitors the workstation has
- the resolution and orientation of each monitor
- o/s dot-per-inch setting (may not be the Windows default)
- the size of the main Access window the application is in. (It may not be
maximized, and may be spread across multiple monitors)
- whether the form is a child window of Access, or a popup (outside the
main Access window.)
- whether A2007 is using tabbed forms or overlapping windows
- for overlapping child windows, whether the form is mazimized within the
Access window, and if not whether it is placed and sized within the Access
window (or scrolled so partially outside the Access window)
Once you get all that sorted out, you now have string of other issues to
sort out if you want to scale your application to fit. I suggest you look
at Chapter 8 of the Microsoft Access Developers Handbook (Ken Getz et al),
for code to resize. You may find that this code is out of date. I don't
know how well it copes with multiple monitors of different resolutions and
orientations, 64-bit Windows, and all the issues above. It does, however,
address the problems of trying to scale controls that contain other
controls (such as a tab form or option group or subform.)
Then when you have done all the hard work to get this sorted out, you're
going to have to deal with the anger of users (like me) who detest any
developer who thinks I bought a big screen just so you can fill it up. I
certainly won't use your application at any price if you scale it so that
it spreads out vertically to fill up my entire portrait-orientation
monitor.
AccessVandal via AccessMonster.com said:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.