Code to launch brower?

  • Thread starter Thread starter Abe Frohnman
  • Start date Start date
A

Abe Frohnman

I'm looking for code that will launch the default browser to a webpage
when an event occurs. Specifically, when an item is selected from the
menu. Can anyone point me in the right direction?
 
I'm partial to this:

System.Diagnostics.Process p = new System.Diagnostics.Process();

p.StartInfo.FileName = "http://www.yahoo.com";

p.StartInfo.UseShellExecute = true;

p.StartInfo.RedirectStandardOutput = false;

p.StartInfo.Arguments = "";

p.Start();



Brian Patterson
 
Back
Top