Start program in background

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I'm using the coredll.dll function CreateProcess() to start a new process
from my VB .NET app. This other app takes a few seconds to load, so I'd
like to start it in the background when my program launches and then just
bring it to the foreground when needed.

Is there a way to start a process in the background?

Or start the new process and then immediately bring my process to the
foreground?
 
Use a thread to call CreateProcess, though bringing it to the fore is a bit
more challenging then.
 
The problem is that when I create the process - it brings itself to the
foreground. I don't think starting it from a different thread would prevent
this.

Is there a way to bring the current process to the foreground?
 
I don't see a way to do that, other than with a command line parameter to
the other process that tells it to come up in the back.

Paul T.

Mike said:
The problem is that when I create the process - it brings itself to the
foreground. I don't think starting it from a different thread would prevent
this.

Is there a way to bring the current process to the foreground?
 
Back
Top