Thursday, August 26, 2010

Open Link With Standard Browser

To open a link to an arbitrary website in the standardbrowser using C#, just a call of the function System.Diagnostics.Process.Start() with the target URL as parameter is needed. Then automatically the standard browser opens with the desired webpage.
The following example opens this blog:

System.Diagnostics.Process.Start("http://csharp-tricks-en.blogspot.com/");

No comments:

Post a Comment