-3

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,763
  • 9
  • 42
  • 73
termted
  • 31
  • 1
  • 4

2 Answers2

3

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
  • 7,823
  • 6
  • 41
  • 67
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,661
  • 23
  • 69
  • 123
  • 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