Thisform.cntLocked.Left = INT((Thisform.Width - Thisform.cntLocked.Width) / 2 Thisform.cntLocked.Top = INT((Thisform.Height - Thisform.cntLocked.Height) / 2)