See See
SetForegroundWindow behavior frustrating Thread #
786521.
>When I run my application by double clicking on the exe, the vfp screen pops up with focus, then my login form pops up with focus, then the program window on the start bar blinks 3 times and my login form loses focus. No code should be running in the background, so I have no idea why the program window in the start bar is blinking. But the fact that my login form is losing focus is very aggrevating. If i put a messagebox right before the call to my form, the program window doesn't blink and form keeps focus. If I run the program from within fox the login form keeps focus. Any ideas on this? I have never seen this happen before. Thanks for the help.
--sb--