Stupid .NET Trick #174/B

Add a LinkLabel called linkGoogle to a Windows Form Form...

Set the Text property to http://www.google.com/

Double-click on the control...

Add this code:

try
{    
     System.Diagnostics.Process.Start(linkGoogle.Text);
}
catch(Exception ex)
{    
    // whatever you usually do here, e.g. MessageBox.Show(this, ex.ToString());
}

Et voila - link label that shows IE navigated to the given page.

No Comments