J
JezB
From within my .NET forms application I want to start and minimize another
application, so I go:
string eprog =
System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) +
@"\EvilLyrics\EvilLyrics.exe";
if (File.Exists(eprog))
{
ProcessStartInfo psi = new ProcessStartInfo(eprog);
psi.UseShellExecute = false;
psi.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(psi);
}
This starts the other application OK but doesn't minimize the window. Why?
Do I have to minimize the other application via Interop? If so how?
application, so I go:
string eprog =
System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) +
@"\EvilLyrics\EvilLyrics.exe";
if (File.Exists(eprog))
{
ProcessStartInfo psi = new ProcessStartInfo(eprog);
psi.UseShellExecute = false;
psi.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(psi);
}
This starts the other application OK but doesn't minimize the window. Why?
Do I have to minimize the other application via Interop? If so how?