Alex Rivera | Logout

Invoke default browser from C#?

Asked 2008-10-24T06:16:19.840
10

How to invoke the default browser with an URL from C#?

Edit
Report

1 Answer

2

I used System.Diagnostics.Process.Start in the past, but if Firefox or another browser is set as the default this method always throws a terrible exception to users. At last, I come across System.Windows.Forms.Help.ShowHelp

Help.ShowHelp(null, "http://www.google.com");

Please notice that Help is a class only available for WinForms, while Process can be used for other cases (WebForms, WPF and so on).

answered 2008-10-25T05:03:18.523

Your Answer