May 29, 2002 #1 savok Technical User Jan 11, 2001 303 AT How do I center a child mdi form? I tried to set StartUpPosition to CenterOwner or CenterScreen but it gives an Invalid Property Value error? thanks!
How do I center a child mdi form? I tried to set StartUpPosition to CenterOwner or CenterScreen but it gives an Invalid Property Value error? thanks!
May 29, 2002 1 #2 TheVampire Programmer May 1, 2002 828 US Do it in the Child form load event CForm1.Left = (MDIForm1.ScaleWidth / 2) - (CForm1.Width / 2) CForm1.Top = (MDIForm1.ScaleHeight / 2) - (CForm1.Height / 2) Robert Upvote 0 Downvote
Do it in the Child form load event CForm1.Left = (MDIForm1.ScaleWidth / 2) - (CForm1.Width / 2) CForm1.Top = (MDIForm1.ScaleHeight / 2) - (CForm1.Height / 2) Robert