Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

How to toggle between two Apps?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
elena - 27 Apr 2006 20:58 GMT
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
Peter Foot [MVP] - 28 Apr 2006 10:09 GMT
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

Signature

Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

> Hi, All
> How to toggle between two .exe?
[quoted text clipped - 4 lines]
> Please, any ideas
> Thank you
elena - 28 Apr 2006 14:48 GMT
Thank you. Peter i will try that,

> 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
[quoted text clipped - 10 lines]
> > Please, any ideas
> > Thank you

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.