How to toggle between two Apps?

G

Guest

Hi, All
How to toggle between two .exe?
Main.exe is launching Child.exe with CreateProcess() API,
I need to run constantly both Apps and toggle between them.
TaskBar is disabled, the Main.exe is running full screen,

Please, any ideas
Thank you
 
P

Peter Foot [MVP]

If you know the window titles of the two apps, you can P/Invoke FindWindow
to get the hwnd for the main window of the other app, and then P/Invoke
windows APIs such as SetForegroundWindow()

Peter
 
G

Guest

Thank you. Peter i will try that,

Peter Foot said:
If you know the window titles of the two apps, you can P/Invoke FindWindow
to get the hwnd for the main window of the other app, and then P/Invoke
windows APIs such as SetForegroundWindow()

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top