MainForm.Top:= Screen.Height div 2-MainForm.Height div 2; MainForm. Left : =Screen.Width div 2-MainForm.Width div 2;