Results 1 to 4 of 4
  1. #1
    nzlowie is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    5

    How to set correct form size

    Hi all

    I'm revisiting a data base I built many years ago, it was written wen I had a CRT monitor! The main form was full screen, now it can be run on different screen sizes and resolutions which means the sizing is all over the place.

    Is there a way to design my main screen so that it will be full screen no matter what screen and resolution I run it at?

    Also looking back at my original I can see many differences between forms, is there a way I can copy the layout of a form so I can change all the forms to the same layout?

    Appreciate your help.



    Dave

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I don't use the Tabbed Documents option for db design but maybe that would accommodate your requirement. Otherwise, really have to design for smallest screen and lowest resolution of all your users or else those old tech users will just have to put up with the inconvenience.

    I have read threads about coding to dynamically change resolution and sizing - don't remember if any are successful. Because, really, users would get upset if you changed their screen resolution for the convenience of 1 app.

    What do you mean by 'copy the layout'? You can copy/paste controls. But there is no way to make a form adopt properties of another form, at least not without a lot of fancy VBA code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  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
    This might help:

    http://www.utteraccess.com/forum/Res...Post182520&Zp=

    Here's a link to a commercial app that does work in 2010/2013. They allow a free demo download.

    Resize Microsoft Access Forms with ShrinkerStretcher from Peter's Software

    There are other similar hacks, but the one caveat is that they work best when upsizing, so it's best that the Form(s) are developed in the smallest resolution you're apt to encounter.

    Linq ;0)>

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Is there a way to design my main screen so that it will be full screen no matter what screen and resolution I run it at?
    The app will maximize according to the resolution, so if by "main screen" you mean what I know of as a switchboard form, simply maximize it on opening if the db form view property is set to "overlapping windows". Subsequent forms should open maximized and the underlying form that comes back into view should be maximized again. However, if you don't open other forms maximized, I believe the underlying form will open to the size it was saved at. To get around this, you might need a maximize event, but it would require some sort of vba trick or API call to get it to run since the form activate event does not fire on the underlying form simply because you closed some other form. You could also use the tabbed form option as June7 suggested.

    is there a way I can copy the layout of a form so I can change all the forms to the same layout?
    Maybe I don't get the question, but if the'yre all going to be laid out the same, it would seem they'd all have the same controls, buttons, labels, etc. In that case, why not just re-use the same form and set the object properties depending on user action?
    Or if you're referring to having many properties e.g. background color, button properties, etc. to be the same, then create a template form and copy/save as when you need another one.

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

Similar Threads

  1. Replies: 4
    Last Post: 02-10-2015, 01:07 AM
  2. Replies: 5
    Last Post: 09-12-2014, 06:41 AM
  3. Replies: 4
    Last Post: 03-05-2012, 10:20 AM
  4. Replies: 9
    Last Post: 06-26-2011, 09:14 PM
  5. Can System Restore correct Form Size issue
    By fordtough in forum Forms
    Replies: 0
    Last Post: 04-12-2011, 02:56 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