Marco Peters

I've got a Windows Application with a form, how can i let a button open a webpage

Please reply, need help fast!

Marco



Re: Visual C# General Opening a webpage from a Windows Application in C#

Dennis Vysotskiy

You could use WebBrowser control to open a web page within your application.

Below is the code that will open a web page in your default browser.

Code Snippet

string url = "http://www.google.com";

System.Diagnostics.Process proc = new System.Diagnostics.Process();

System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(url);

proc.StartInfo = startInfo;

proc.Start();





Re: Visual C# General Opening a webpage from a Windows Application in C#

Marco Peters

Thank's, you saved my day!