Minimize a process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have written code to start another process and a form is displayed within
my app to let the user know the process is running. The problem is the
process runs in normal mode and shows in front of the app. I would ideally
like to manipulate the process's window mode to minimize it, or possibly hide
it, like the options the Shell() command has.

Any ideas?

Thanks.

Tippy.
 
Tippy G said:
I have written code to start another process and a form is displayed within
my app to let the user know the process is running. The problem is the
process runs in normal mode and shows in front of the app. I would ideally
like to manipulate the process's window mode to minimize it, or possibly
hide
it, like the options the Shell() command has.

Dim psi As ProcessStartInfo = New ProcessStartInfo
psi.WindowStyle = ProcessWindowStyle.Hidden
'psi.WindowStyle = ProcessWindowStyle.Maximized
'psi.WindowStyle = ProcessWindowStyle.Minimized
'psi.WindowStyle = ProcessWindowStyle.Normal
psi.FileName = "..."
Dim p As Process = New Process
p.StartInfo = psi
p.Start()

Cheers

Arne Janning
 
Back
Top