>Hi Gang...
>
>In the EXE here, it calls another EXE that comes to the front of the desktop.
>
>After 300 seconds, the first EXE needs to come back to the front, but it doesn't.
>
>Is there an API to move the first EXE back to the front after the timeout?
>
Next to SetForeGroundWindow() etc., perhaps you can handle it internally: if the first.EXE is your own Vfp code, then this might work (assuming _screen.Visible=.T.):
With _screen
.AlwaysOnTop = !.AlwaysOnTop
.AlwaysOnTop = !.AlwaysOnTop
EndWith
hth
-Stefan