Launch Default Browser with Users Home Page

J

Jon Berry

Is there a way to launch the default browser with the users home page?

This works for launching the browser with a page:

System.Diagnostics.Process.Start(http://www.google.com);

I don't need it to load a page, however.

Thanks.
 
M

Morten Wennevik [C# MVP]

Hi Jon,

You can open the default browser by just starting a process with the correct
browser without any arguments.

This would start internet explorer with the default homepage.
System.Diagnostics.Process.Start("iexplore");

Ryan Farley has a simple method that reads the default browser information
from the registry

http://ryanfarley.com/blog/archive/2004/05/16/649.aspx

Using his getDefaultBrowser method you can simply do
System.Diagnostics.Process.Start(getDefaultBrowser());
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top