Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form sizing (2000 SR-1)

    I'm trying to construct a 3 x 3 inch form that opens up in the center of the screen. However, it keeps coming up much larger than expected--often full screen. I've worked with the Modal, Pop-up, Width, Auto Center, and Border Style form properties. I've also worked with some macro MoveSize properties (width, height).

    Thanks,
    Bob

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Form sizing (2000 SR-1)

    Have you set the Auto Resize property of the form to Yes?

  3. #3
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,624
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: Form sizing (2000 SR-1)

    Most probably what you want is Pop-Up, AutoCenter and Modal set to Yes, and possibly use a dialog style border.
    Wendell

  4. #4
    New Lounger
    Join Date
    Jun 2003
    Location
    New Hampshire, USA
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form sizing (2000 SR-1)

    Just to add my 2 cents cause it's not really mentioned anywhere (that I could see, but then again, I'm due for new glasses <img src=/S/eyeout.gif border=0 alt=eyeout width=15 height=15> )

    After an afternoon of reading books and searching forums trying to figure out why my dialog box wouldn't resize properly;

    Restore down the window for your dialog box till it is the size you want then save the form.

    I know it sounds simple but if you look at MS's help, you'll understand why I'm terminally gray <img src=/S/rtfm.gif border=0 alt=rtfm width=24 height=23> .

    "To position a pop-up form on the screen, open the form in Design view, maximize the Microsoft Access window, position the form where you want it, and then save the form. The form will appear in this location when it's opened (assuming the AutoCenter property is set to No and you haven't specified its position in the event procedure that opens the pop-up form)."

  5. #5
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form sizing (2000 SR-1)

    Mr Bob, you could use the MoveSize method:

    DoCmd.MoveSize Right:=5955, Down:=1650, Width:=5925, Height:=6000

    You will need to change the numeric values for your own values.

    Use in the On_Open event

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •