Article ID: 320320 - View products that this article applies to.
This article was previously published under Q320320
This step-by-step article demonstrates how to use a LinkLabel control in the Microsoft .NET Framework System.Windows.Forms namespace of the to open a Web address (or URL) in the default Web browser.
Although the LinkLabel control contains built-in facilities to associate URLs with arbitrary regions of a link, LinkLabel does not contain a simple method to open the URL in an external browser when you click the label. Fortunately, the Process class in the .NET Framework System.Diagnostics namespace makes this method easy. Process takes an initial argument of ProcessStartInfo. ProcessStartInfo, in turn, takes a path to a file. This path is either a local file path or an URL. ProcessStartInfo uses the content type to open the file in an appropriate program. This emulates the Win32 ShellExecute function. For additional information about this function, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/174156/EN-US/ )HOWTO: Programmatically Launch the Default Internet Browser
For more information, see the following MSDN Web site:
Article ID: 320320 - Last Review: July 30, 2003 - Revision: 2.1
Contact us for more help