if type( "_Screen.ActiveForm.Name" ) == "C" local lcActiveForm lcActiveForm = _Screen.ActiveForm.Name IF NOT ISNULL(_Screen.ActiveForm.ActiveControl) **** Click in the middle of the Control, but this is dangerous if the control is a button **** or if you have some code in Click Event of the control mTop = INT(_screen.ActiveForm.ActiveControl.Top + _screen.ActiveForm.ActiveControl.Height/2) mLeft = INT(_screen.ActiveForm.ActiveControl.Left + _screen.ActiveForm.ActiveControl.Width/2) MOUSE CLICK WINDOW (m1) AT mTop,mLeft PIXELS ELSE mouse click at -1, 0 pixels window (lcActiveForm) && Just to make sure you don't have a control on 0,0 position of the form ENDIF endif