C# – Opening a website when a button on the form is clicked

cnetwinforms

I am creating a windows application using C#, where in a button on the GUI when clicked, should open a website.

The web browser will be taken care of by the default settings.

I am curious as to how to do that?

Best Answer

This will open the specified link in the default web browser:

Process.Start("http://www.google.com");