Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    A Place for my Modal Stuff (A2K)

    This is a really, small cosmetic-type problem.

    I have a popup modal form that works perfectly ( thanks to past help from Hans ), but .....
    I don't like where it's sitting on the current form when it's "popped up".
    I did a search on the forum for: position: popup: modal: and variations thereof and couldn't find what I wanted.

    Would appreciate any help on this,
    Cheers,
    Andy

  2. #2
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: A Place for my Modal Stuff (A2K)

    Hi, you can use the Move method applied to the popup form.

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

    Re: A Place for my Modal Stuff (A2K)

    If you'd like the form to be centered (more or less) with respect to the Access window, set the Auto Center property of the form to yes.
    If you set this property to No, the form will be displayed in the position where you last saved its design. As Giorgio (grovelli) indicated, you can set its position using the Move method, for example in the On Open event:

    Private Sub Form_Open(Cancel As Integer)
    Me.Move Left:=5000, Top:=1000
    End Sub

    Distances are from the upper left corner of the content area of the Access window, and measured in twips, where 1 inch = 1440 twips. You can also position the form relative to another form. You need some extra code for that, see ACC2000: How to Get the Right and Down Measurements of a Form.

  4. #4
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: A Place for my Modal Stuff (A2K)

    Giorgio & Hans,

    Thanks kindly for your responses. I'll now be able to "move" forward with greater accuracy.
    Cheers,
    Andy

Posting Permissions

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