Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => C/C++/C# => Topic started by: Taruna on December 26, 2006, 07:31:16 PM



Title: Open a URL in the Default Browser in Your .NET Application
Post by: Taruna on December 26, 2006, 07:31:16 PM
Virtually every application these days requires at least some connection to the internet. Letting the user click a link and open it in their browser is essential. This recipe shows you the 1 line method of doing so.

This is the absolute simplest way to launch a URL in a .NET application:

Code:
System.Diagnostics.Process.Start("http://www.technoworldinc.com");

Just put this code in the click event for your control, and replace the URL in the sample code with your URL.



Title: Re: Open a URL in the Default Browser in Your .NET Application
Post by: Mark David on April 18, 2007, 07:08:26 AM
nice trick..thanks