How to toggle between two Apps?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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

Back
Top