Results 1 to 9 of 9
  1. #1
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114

    how do i get access 2010 form objects to center on the screen?

    AT LAST... the database is done!

    However, my boss would like it better if all the objects (i.e. buttons, fields labels, etc.) could center on the screen as they are opened; instead of just on the left side.

    Here's the design view, where the header label and line are set to stretch across the top.
    Click image for larger version. 

Name:	Step 1.png 
Views:	39 
Size:	59.6 KB 
ID:	25734

    And the actual form.
    Click image for larger version. 

Name:	Step 2.png 
Views:	38 
Size:	35.0 KB 
ID:	25735



    Any assistance would be appreciated.

    Thank you,

    Rebecca Feinstein

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    AT LAST... the database is done!
    You're joking.... Right??? You KNOW that someone will say "Boy, it sure would be nice if we could just ........." or "Can we add .....".


    It took me a minute to understand what you were asking.

    I never liked or used the the "Tabbed View" forms.
    On a COPY of your dB, try this..

    Open the dB
    Go to "Files - Options - Current database"
    Look for "Document Window Options".
    Click the "Overlapping Windows" option.
    Click OK (bottom right).
    This a "system" setting



    Now do this for EACH and EVERY one of your forms.

    Open the form in design view.
    Open the form properties dialog box.
    Click on the "Format" tab.
    Look for "Auto Center". Set it to "YES".
    Look for "Auto Resize". Set it to "NO"
    Save the form.
    You might have to resize each form to the size/location you want. Whatever size you make the form is the size it will always open to.

    Warning: you might have to do more coding to control the display of forms left open or not hidden, if the last form opened is smaller than any previous forms.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    usual case of mission creep.

    But then the boss is paying the bill

    seriously before you take on ssanfu's suggestion, do clarify with the boss what he/she means - clarify that he/she is happy having smaller forms that can be moved round the screen. clarify that he is happy to have one form overlay another. in other words clarify exactly what he/she expects - just this form? all forms? what about different screen sizes/resolutions? Just a shame it wasn't specified from the get go.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Good points Steve!.

    I thought, finally, I've found one!!
    AT LAST... the database is done!
    But I shook my head and reality set in....we're still looking for a finalized, final version.

    Nothing like detailed specs-- in writing.

    Oh wait, we'll consider that for the next version-- just sign here and Date it.

  5. #5
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114
    Thank you for the quick response, I'll give it a try.

    ...I wonder what Julius Caesar would think about your take on his "Veni ,Vidi ,Vici" quote (which I love).

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    if you want to place controls centrally on a form I don't think there is any access setting you can use, you'll need to work it out for each control and put some code in the form resize event

    to centre a control on the form

    mycontrol.left=(insidewidth-mycontrol.width)/2
    mycontrol.top=(insideheight-mycontrol.height)/2

    to centre around the left side of a vertical centre

    mycontrol.left=(=(insidewidth-mycontrol.width)/2-mycontrol.width-somevalue 'somevalue is the number of twips (1440 twips=1 inch) you want as a space between mycontrol's right edge and the centre. modify for controls to appear on the right side of centre

    should give you the idea.

  7. #7
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114
    And in reply to the "you're joking..." remark. Of course I'm joking!

    I'm a technical writer by trade. And believe you me, I KNOW that the finished product of anything is NEVER what was envisioned, written or produced in the planning stages.

  8. #8
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Just as a thought, you can build different FE files for different monitor sizes and aspect ratios (or buy everyone the same sized monitors). If aesthetics matter, you might find this a better option than building an HTML5 web app with CSS and media queries.

  9. #9
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114
    Thank you all for your help.

    It turns out, that my boss decided, that we can do the form centering thing on the next version of the db.

    So, I'm marking this thread solved and, Yes, he does sign off on my timecards!

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

Similar Threads

  1. Replies: 3
    Last Post: 01-03-2016, 05:34 PM
  2. unable to view my objects on the left screen
    By BrockWade in forum Access
    Replies: 1
    Last Post: 12-17-2013, 11:46 AM
  3. Replies: 3
    Last Post: 02-01-2013, 01:11 PM
  4. how to make fit on screen of ms access form?
    By alex_raju in forum Forms
    Replies: 2
    Last Post: 07-25-2011, 05:28 PM
  5. Center Form Vertically
    By injanib in forum Forms
    Replies: 5
    Last Post: 03-24-2011, 01:51 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