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
 

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