Is there a good way to place MDI child forms when the window is maximized???
I am having trouble getting them to move!!
:-(
Please help.
Nick
Printable View
Is there a good way to place MDI child forms when the window is maximized???
I am having trouble getting them to move!!
:-(
Please help.
Nick
Try this:
Code:Public Sub Center_Form(CallingForm As Form)
CallingForm.Left = (MDIMainMenu.Width - CallingForm.Width) / 2
CallingForm.Top = (MDIMainMenu.Height - CallingForm.Height) / 2
End Sub
Sub Form_Load()
Call Center_Form(ME)
End Sub
Try this.
Code:Private Sub MDIForm_Load()
Form1.Move (Me.ScaleWidth / 2) - (Form1.Width / 2), (Me.ScaleHeight / 2) - (Form1.Height / 2)
End Sub