Crouchie: OK, I've set my TopMost to True (and set it to False when the form
is closing).
And yes, I believe that my window caption is a constant value. Actually, I
am using FindWindow, and FindWindowLike to get the handle of the
application; that I am not having a problem with. I just need to set the
focus to that external application (so I can send it keystrokes) yet keep
the other window in the front to display statistics (via a timer).
I've played around with SetFocusAPI, BringProcessToFront, SetToForeground,
etc; however, I am unsure as to exactly which one (if only one) I need to
use to accomplish this task.
One more thing: I find that if I have used one of these APIs to set focus to
the external application, it seems to have a hard time setting focus BACK to
my main VB.NET application once it gets done. I tried a simple Me.Focus but
the external application still stays up. Any ideas on that?
Tom
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Set your application to topmost:
Me.TopMost = True ' You application is now the TopMost windows.
Is the 'window caption' a constant value in your external application? If
so, you can use FindWindow to get its Handle etc.
Awaiting your reply to the Window Caption question