>Hi! I'm maintaining an old FPD26 application, in an effort to spruce up the reports i've written some in VFP6 which I call using the RUN command.
>
>All works fine except I want the control to go back to my FPD application when the the VFP6 application closes.
>
>Can I make VFP6 give FPD26 the focus b4 it closes?
>
>Any ideas?
You can try to use use
FindWindow API #12638 to get FPD26 application window handle and
SetForegroundWindow API #12720 to switch focus.
--sb--