Check
Re: I want to close a VFP app when it loses focus, but...>
>In my app I have a splash screen, top form etc. etc. so there is no task bar icon. Then the VFP desktop is displayed. I have put in a KEYBOARD to open the data-entry menu when the app is in usable condition.
>
>Now supposing I start the app from it's shortcut and switch to another already running application. My app and it's splash screen and all are loading in the background. Once loaded the popup menu which I open with a KEYBOARD is displayed onto the current win app. To get out of this deadlock kind of situation I have to alt+tab to my app and then alt+tab back to the current app. I can't click on task bar icons and switch between apps, it has to be alt+tab.
>
>How can I find out if my app is currently not the one with focus and send it back behind or if this is not possible get it in the front by force.
>
>Please advise.
--sb--