I need to open multiple IE tabs in C# (windows application). Below is my code:
string[] pcList = txtInput.Text.Trim().Split(',');
foreach (string pc in pcList)
{
if (pc.Trim() != "")
{
System.Diagnostics.Process.Start("http://myCom/Lookup?type=ProductCode&name=" + pc.Trim());
}
}
If the default browser is firefox, there is no problem.
If the default browser is IE, and one IE window was opened, there is no problem either. Multiple tabs will be opened according to the input in txtInput.
The problem I'm having is: if the default browser is IE and no IE window was opened, only one IE window and one tab will be opened. I do not know why is that and how to fix it. Can anyone help?
Thanks!