How to code Form's scale width in different monitor size

  • Thread starter jrbph via AccessMonster.com
  • Start date
J

jrbph via AccessMonster.com

Hi again to everyone,

I have a problem in my application form display. I set my form's property to
maximize when it opens. This is okey and it works to any monitor/display
without discrepancy because it will fit to the window coordinates.

Some of my forms are not designed to maximize when it opens, I just designed
to be in the middle of the screen, but get a problem when running to
different displays (laptops with diff sizes of displays) or any monitors that
is not same size with the one I used with the defined lenght, width and
height. Can I ask someone to help me code this scalewidth to adjust the
form's scale even it runs to different sizes of monitor displays. I tried
setting the property of the form to pop-up, center and auto resize, but not
giving the correct location in displaying the form.

Thank you to those who are kind enough to share their expertise.
 
P

pddxxx

Are you trying to position the form in the same relative position on
the end user's screen? The Docmd.MoveSize command may be what you
need, once you've done the calculations for the position of the form
at the user's resolution. To center, it's a fairly simple calculation.
Just take the screen width, divide by 2 then subtract the form width
divided by 2 and that is your left position for the form. Same idea
for the form top position.

There are third-party form scaling solutions available that might
help:

A shareware version of a form rescaling module I wrote called
ShrinkerStretcher is available at this web site: http://www.peterssoftware.com/ss.htm

There's a form resizer at http://www.jamiessoftware.tk/resizeform/rf_jump.html
..

Another one: http://sourceforge.net/projects/modscaleform

The Access Developer's Handbook has form resizing code included:
http://www.amazon.com/exec/obidos/ISBN=0782119417/107-8064361-7403703

Hope this helps,

Peter De Baets
Peter's Software - Microsoft Access Tools for Developers
http://www.peterssoftware.com
 
J

jrbph via AccessMonster.com

Hi Peter,

Thank you for your help and the references to resize the forms. Yes, maybe I
would only need now the form to be in the relative position of the end-user's
screen. I will try the docmd.movesize and see what will happen.

Rody
 

Ask a Question

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.

Ask a Question

Top