Check if
Re: How to get focus to my VFP app from a VFP utility once c Thread #
1220775 Message #
1220782 may help.
>Actually it occurs when launched by the loader as well. If any other windows app is open,focus shifts to it (e.g. outlook, windows explorer). In fact, unless a form is launched inside our app which contains an activex control, focus is anyplace BUT The vfp app when it launches.
>
>
>
>>>The app is typically launched from a loader, but if it is launched directly from windows explorer, then focus shifts back to windows explorer. This should be a simple one, but I can't seem to recall how to fix it. Any ideas?
>>
>>An alternate approach would be to make it so your main app won't start unless it's being called from your loader:
>>
>>- check using PROGRAM(), SYS(16) etc.
>>- in your main app check for absence of a parameter expected from your loader
If it's not broken, fix it until it is.
My Blog