Does anyone know how to center a Child MDI form within its parent ? The startup property doesn't work.
Printable View
Does anyone know how to center a Child MDI form within its parent ? The startup property doesn't work.
Code:Private Sub MDIForm_Load()
Form1.Move (Me.ScaleWidth / 2) - (Form1.Width / 2), (Me.ScaleHeight / 2) - (Form1.Height / 2)
End Sub
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