You can use
FindWindow API #12638 to get window handle and
SetForegroundWindow API #12720 to switch focus.
>Hi Everybody,
>
>Anybody know how to focus an application window that has a certain caption on it.
>
>What I am trying to do is that in my VFP 8 application, If the Inbox of Outlook folder is openned, I wanted my application window to switch the focus into it.
--sb--