This code uses the System.Diagnostics namespace to open a specified URL in the users default web browser. There is some error checking in there incase the user has no default browser, so it should be fairly robust.
The following code is the Click event of a LinkLabel called linkLabel1:
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
string webURL = "http://geekswithblogs.net/stevelydford";
try
{
System.Diagnostics.Process.Start(webURL);
}
catch
(
System.ComponentModel.Win32Exception noBrowser)
{
if (noBrowser.ErrorCode == -2147467259)
MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
MessageBox.Show(other.Message);
}
}