-4

Given a Winforms application with a button - how can it open a specific URL/website from within this application by clicking the button?

KevDog
  • 5,665
  • 9
  • 41
  • 70
termted
  • 21
  • 1
  • 4

2 Answers2

4

You can use:

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

Original answer: How to open a web page from my application?

Community
  • 1
  • 1
Wojciech Kulik
  • 6,884
  • 5
  • 38
  • 65
0

You can to that by command line

"C:\Program Files\Internet Explorer\iexplore.exe" www.google.com

Read about Process class

        Process myProcess = new Process();
        myProcess.StartInfo.FileName = "command there";
        myProcess.Start();
Jacek
  • 11,107
  • 22
  • 62
  • 116
  • 3
    This assumes you want to force IE on the user. Using `System.Diagnostics.Process.Start` will use the user's default web browser. – Anthony Apr 16 '15 at 13:10