DO FORM f2 WITH thisformIn your second form, you need code in 2 places. You need to have the oCallingForm property added in the designer, or you can have a line of code like thisform.AddProperty("oCallingForm") if you're using VFP6 or above. You need code in the Init:
LPARAMETERS toCallingForm thisform.oCallingForm = toCallingForm thisform.oCallingForm.Visible = .f.and in the Unload:
thisform.oCallingForm.Visible = .t.No timers involved, and the focus is still on form 1 button that called form 2 when you return.
thisform.oCallingForm = _SCREEN.ActiveForm thisform.oCallingForm.Visible = .f.You still need the oCallingForm property and the code in the Unload.