How to

open url address in browser

Published: 13. December 2008 | Updated: 26. October 2011
License: Microsoft Public License (MS-PL)
Categories: Network, Windows » Processes
Tags: C# Network Windows Winforms
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Diagnostics;

Code

// open in default browser
Process.Start("http:\www.csharpdeveloping.net");


// open in Internet Explorer
Process.Start("iexplore", @"http://www.csharpdeveloping.net/");

// open in Firefox
Process.Start("firefox", @"http://www.csharpdeveloping.net/");

// open in Google Chrome
Process.Start("chrome", @"http://www.csharpdeveloping.net/");
Send us feedback about this snippet »



Related Snippets: