Start the default browser to display a web page with C#
Code:
using System.Diagnostics;
namespace ConsoleApplications
{
class StartBrowserDemo
{
static void Main(string[] args)
{
string url = "http://www.bing.com/";
OpenURL(url);
}
/// <summary>
/// Open the page indicated in the url in the default browser
/// </summary>
/// <param name="urlToOpen"></param>
private static void OpenURL(string urlToOpen)
{
Process processBrowser = new Process();
processBrowser = Process.Start(urlToOpen);
}
}
}