If form2 is modal, you can't set focus off of it to another form...
>
>Simple example :
>
>------------
>Create a two forms:
>
>1) Form1 with button and timer
>
>Command1.Click event :
> ThisForm.Timer1.Interval = 1000
> ThisForm.Timer1.Enabled = .T. // Start the Timer
> DO FORM Form2 // Call second form
>
>Timer1.OnTimer event :
> ThisForm.Command1.SetFocus() // Set focus back to form1
>
>2) Form2 with WindowType = 1 //Modal
>
>-------------
>
>Now Run the Form1 and press button.
>In one second - Bye-Bye, FoxPro!
>
Steve Gibson