Frame1.Left = (Application.Width - Frame1.Width) / 2 Frame1.Top = (Application.Height - Frame1.Height) / 2