I am using an mdiparent form. What I want to do is place the mdichild form in the center of the mdiparent form when the mdichild loads. Do you have any suggessions?
Printable View
I am using an mdiparent form. What I want to do is place the mdichild form in the center of the mdiparent form when the mdichild loads. Do you have any suggessions?
In the child's Form_Activate event:
VB Code:
Private Sub Form_Activate() Form1.Move ((MDIForm1.ScaleWidth - Me.ScaleWidth) / 2), ((MDIForm1.ScaleHeight - Me.ScaleHeight) / 2) End Sub