Results 1 to 3 of 3

Thread: Centering Child MDI Forms

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    39

    Question

    Does anyone know how to center a Child MDI form within its parent ? The startup property doesn't work.

  2. #2
    Guest
    Code:
    Private Sub MDIForm_Load()
        Form1.Move (Me.ScaleWidth / 2) - (Form1.Width / 2), (Me.ScaleHeight / 2) - (Form1.Height / 2)
    End Sub

  3. #3
    Guest
    Or you can place it in the Form you want to load:
    Code:
    Private Sub Form_Load()
        Move (MDIForm1.ScaleWidth / 2) - (Me.Width / 2), (MDIForm1.ScaleHeight / 2) - (Me.Height / 2)
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width