Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Location
    Sweden
    Posts
    4

    Unhappy Unanswered: How to resize forms at load ?

    I'm totaly stuck. I'm programming a Access database where I do use a button to open another form.
    If the form with the button on is maximized so will the form thats opens also be maximized , and if the first form is in a state where its not maximized so will the form be sized as i want.

    Can anybody give a hint about what im doing wrong.

    What i will ashive is that the second form shall have a size that i deside, not as now being different depending on the size of the first form.

  2. #2
    Join Date
    Sep 2003
    Posts
    17

    Re: How to resize forms at load ?

    Originally posted by Voyager30
    I'm totaly stuck. I'm programming a Access database where I do use a button to open another form.
    If the form with the button on is maximized so will the form thats opens also be maximized , and if the first form is in a state where its not maximized so will the form be sized as i want.

    Can anybody give a hint about what im doing wrong.

    What i will ashive is that the second form shall have a size that i deside, not as now being different depending on the size of the first form.
    Try the DoCmd.MoveSize command

  3. #3
    Join Date
    Sep 2003
    Location
    Sweden
    Posts
    4

    Re: How to resize forms at load ?

    Originally posted by D Willett
    Try the DoCmd.MoveSize command
    Tnx for the fast reply. I have had a go at the DpCmd.MoveResize command but i Don't get it to work.
    I put the command in the forms ACTIVATED event but it don't resize

  4. #4
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    use the Form_Load

    Set your code in the Form_Load
    this is called after the button press when you call up the form and exceuted before your load the form

  5. #5
    Join Date
    Sep 2003
    Location
    UK
    Posts
    122
    Code:
    Private Sub Form_Load()
        DoCmd.Maximize
    End Sub
    Matt the Hat says: "what!?"
    A child of five could understand this! Fetch me a child of five!
    SCARY HARD CHALLENGE: http://www.dbforums.com/showthread.php?threadid=988682

Posting Permissions

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