11,709,220 members (59,299 online)
Rate this:
See more:
Hi there,
I can open notepad and minimize the window with following code:

startInfo.WindowStyle = ProcessWindowStyle.Minimized;

Process.Start(startInfo);

But I can't open IE and minimize it:
ProcessStartInfo startInfo = new ProcessStartInfo("iexplore.exe");
startInfo.WindowStyle = ProcessWindowStyle.Minimized;

Process.Start(startInfo);

How can I open IE and Minimize it?
By the way, I use IE9 and Win7.
Posted 28-Jan-13 20:22pm
Laohutu378

Rate this:

## Solution 1

Hi,

Since, iexplore.exe is not having any command line parameter to minimize while launch, you can write the below vbscript to achieve that.
```Set WshShell = WScript.CreateObject("WScript.Shell")

Best Regards
Muthuraja
rzhao at 29-Jan-13 7:17am

Muthuraja,
Thanks for your help. Would you please let me know how to implement it in C#? because all my other codes are in C#.