Background
We are developing an application where you can search some stuff on the internet or open a webpage and you can chose what browser to use as well.
So if I would like to open Google.com for example, and I want it to open in Chrome, then the webpage should open in Chrome. In the event that I want to open Google.com in IE, then IE should open the Google page.
Now about using a tab in the browser: since all browsers now support it, opening a webpage in a new tab is already taken care of by the browser itself, whether it be Chrome or Firefox. But in the case of IE, if IE is your default browser, then IE will open the webpage in a new IE tab. However, if IE is not your default browser, then IE will instead open the web page in a new IE window.
Some additional information
There are several ways of opening a web page via: code for your default web browser
Process.Start(new ProcessStartInfo() { FileName = "http://www.google.com" }); or if you want to open the webpage in another webbrowser besides the default one. Firefox for example
string a = "%programfiles%\\Mozilla Firefox\firefox.exe"; a = Environment.ExpandEnvironmentVariables(a); Process.Start(new ProcessStartInfo() { FileName = a, Arguments = "http:\\www.google.com" }); command
>start "http://www.google.com" or
cmd /c start "http://www.gooogle.com"
Question
How do you open a webpage in IE(for version 8, 9, and 10) on a new tab even if IE is not your default browser?