Jun
28
Opening a WebPage in the Default Browser (C# .net)
Filed Under (Code) by Mystalia on 28-06-2008
Tagged Under : browser, c#, default browser, framework., internet
When you just want to open a webpage in the systems default browser there are many complicated methods to do it, like going through the registry and finding out what the default browser is… blah blah…
SO! Why not just hand the task over to windows…
using System.Diagnostics; // In one line of code look... Process.Start("http://www.google.com");
And there you go, windows will handle the url as if you had just clicked a shortcut on the desktop and open it with the default browser.
Easy.