Can't use ProcessWindowStyle.Minimized to start Firefox instance minimized?
Posted
by Rob3C
on Stack Overflow
See other posts from Stack Overflow
or by Rob3C
Published on 2009-06-01T02:35:55Z
Indexed on
2010/04/02
15:03 UTC
Read the original article
Hit count: 340
I'm having trouble using Process.Start with Firefox. I want to start a new instance of Firefox in a minimized window. The following works fine with Internet Explorer, notepad, etc.:
ProcessStartInfo p = new ProcessStartInfo();
p.FileName = "iexplore.exe";
p.Arguments = "http://www.google.com";
p.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(p);
This opens IE in a new, minimized window. Good, just what I want. If I try the exact same thing but instead supply Firefox in the p.FileName, it opens Firefox in a "normal" window, rather than minimized. I've tried various changes to arguments, also have tried examining my local Firefox settings (under Tools/Options) with no luck. I'm sure I'm just missing something simple, but can't figure out what it is. If anyone can help me with getting Firefox opened in a minimized state it would be greatly appreciated!
© Stack Overflow or respective owner