Hi!
Make a timer that will determine the HWND of your application and MS Word application and, using API functions, check periodically of Word or your VFP application is activated or deactivated. If state changed compare to previous state (stored somewhere), run some code you need. To determine if window is active by its HWND, use Windows API functions.
HTH.
>Dear All,
>
>i am running my application. In other window i am running MSWORD or other, so when the msword or other application is deactivated or minimized i want to perform some coding in my application and same at the of activation of my application or when it click on taskbar.
>
>Thanku In Advance.
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.