Launch Default Browser with Users Home Page

  • Thread starter Thread starter Jon Berry
  • Start date Start date
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.
 
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());
 
Back
Top