Results 1 to 4 of 4
  1. #1
    sanal is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    43

    Resizing of forms

    All command buttons and labels on it are ok when the database is opened in my laptop. But the database is opened in desktop computer the labels on some command buttons are streched out and some portion of the labels not visible. How can it be prevented. How to prevent the un proportianate expansion of labels inside the command buttons on forms depending on the resolution of the computer it opened.Is this problem can be prevented by making the resizing ootion of the form to No.

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    I believe Anchoring can do some of what you want but not everything

    I use form resizing code by Jamie Czernak which modifies the form size to fit the screen size & resolution
    There are other similar utilities available e.g. by ShrinkerStrecher by Peter's Software.

    See the example database at: https://www.accessforums.net/showthread.php?t=69858

    Hold the shift key down to view the code

    To use in your own apps, copy the module modResizeForm and add the line ResizeForm Me to the load event of each form
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Your problem is caused by differing screen resolutions on the various machines you're using...and the two hacks mentions by @ridders52 are the most commonly used ones to address the situation.

    It should be noted that these, and most such hacks, work best when upsizing, meaning that the app should be developed in the lowest resolution you're likely to encounter, when distributing it to users.

    Linq ;0)>

  4. #4
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Linq makes a good point about upsizing

    However although my resizing code is still based on upsizing from 800*600, it isn't necessary to do development work at that resolution.
    My main monitor is 1620*1080 resolution, and my secondary monitor higher than that.
    It just means that firms intended to be full screen in use, are smaller than that in design view.

    NOTE I prefer to call my resizing code a solution rather than a hack
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-07-2018, 04:44 PM
  2. Resizing Forms
    By Lou_Reed in forum Access
    Replies: 12
    Last Post: 01-21-2016, 10:40 AM
  3. Resizing forms
    By Lukael in forum Forms
    Replies: 10
    Last Post: 11-11-2015, 12:53 PM
  4. Resizing Forms (Properties affecting behavior)
    By ajetrumpet in forum Tutorials
    Replies: 0
    Last Post: 07-17-2011, 04:05 PM
  5. Resizing forms
    By wacky1 in forum Access
    Replies: 1
    Last Post: 01-22-2010, 09:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums