Hi!
You require to use SetForegrounWindow() Windows API function. You can find VFP main screen window HWND handle by using GetActiveWindow() or FindWindow() API functions.
>Hi,
>
>I have an VFP 5 app that works in background. How to make it the top most window on some event. I use form.show to make it visible but for example when some other app or game is running the form only gets visible but focus is not switched to it.
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.