How do I open a web browser from C#? Process.Start() isn't working?

Posted by Scott Whitlock on Stack Overflow See other posts from Stack Overflow or by Scott Whitlock
Published on 2010-05-09T01:47:14Z Indexed on 2010/05/09 1:48 UTC
Read the original article Hit count: 187

Filed under:
|
|
|

I have a URL and I want to launch it in the default browser. I've tried two methods:

Process.Start("http://stackoverflow.com");

... and the one detailed in this other question using ShellExecute.

In both cases I get the error: Windows cannot find 'http://stackoverflow.com'. Make sure you typed the name correctly, and then try again.

It shouldn't be trying to open it as a file though... from what I understand, it should recognize it as a URL and open it in the default browser. What am I missing?

By the way: OS = Vista, and .NET = 3.5

© Stack Overflow or respective owner

Related posts about c#

Related posts about process