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
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"