C
Chuck Heatherly
There are times when I want to start a child process from my main process, and
show the user that it is running, but have the active window focus remain on my
main process. From what I can tell, this is only possible in managed .NET by
using the Visual Basic .NET function Shell(), parameter 2 which is of type
AppWinStyle. This enumeration contains the value "MinimizedNoFocus", which does
exactly what I want.
My question is, why does the ProcessWindowStyle enumeration in the main .NET
Framework not provide this window style? I would prefer to use the Process and
ProcessStartInfo classes to start child processes because they offer so many
more options for control. But the ProcessWindowStyle enumeration only has
values for "Hidden", "Maximized", "Minimized", and "Normal". When I use
"Minimized", the new child process steals the active window focus, which is a
big problem for my application.
Is there any other way to set this window style while using the
System.Diagnostics classes?
I checked the February 2005 CTP of Visual Studio 2005, there have been no new
values added to the ProcessWindowStyle enumeration.
Thanks for any help,
Chuck
show the user that it is running, but have the active window focus remain on my
main process. From what I can tell, this is only possible in managed .NET by
using the Visual Basic .NET function Shell(), parameter 2 which is of type
AppWinStyle. This enumeration contains the value "MinimizedNoFocus", which does
exactly what I want.
My question is, why does the ProcessWindowStyle enumeration in the main .NET
Framework not provide this window style? I would prefer to use the Process and
ProcessStartInfo classes to start child processes because they offer so many
more options for control. But the ProcessWindowStyle enumeration only has
values for "Hidden", "Maximized", "Minimized", and "Normal". When I use
"Minimized", the new child process steals the active window focus, which is a
big problem for my application.
Is there any other way to set this window style while using the
System.Diagnostics classes?
I checked the February 2005 CTP of Visual Studio 2005, there have been no new
values added to the ProcessWindowStyle enumeration.
Thanks for any help,
Chuck