tags:

views:

268

answers:

1

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!

A: 

This is a link to an awfully old thread, but it might still be relevant for your issue: Start Firefox minimized to taskbar?.

overslacked
Thanks, I did see that one in my searches and I could not get anything along those lines to work. It's referring to a Windows shortcut, which is different than what I'm wanting to do, but it does seem to be basically the same problem.
Rob3C