How to launch a background EXE from a program?

SarahWard

Banned
Does anyone know how I can start a second EXE program from within a main program RUNNING IN THE BACKGROUND? The main program must retain focus and be the foreground exe.

The idea is to do with GPS. The GPS control does not allow BOTH standard and HTC-type GPS code within the same program. So individual CABs are required for both types of GPS hardware.

If those 2 GPS processes can be coded into dedicated child programs the correct one can be started as a child exe program. Data can be shared back to the main program via a common disk file.

HOW... do I start an EXE from a program but keep the parent exe the active program? My experiments cause the child exe to take the focus away from the main one.

If I use the 'Hardware.ShowTodayScreen' method my parent exe will also dissapear as this method minimises the launched exe and then shows the today screen.
 
Last edited:

mjcoon

Well-Known Member
Licensed User
Hi Sarah, what happens if the child invokes the parent? Since there can be only one invocation of each (on the device, anyway) I would hope that would do what you want...

HTH, Mike.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…