Given a Winforms application with a button - how can it open a specific URL/website from within this application by clicking the button?
Asked
Active
Viewed 3,457 times
-3
-
1"my button" in what? what have you tried/researched? – Sayse Apr 16 '15 at 12:13
-
1possible duplicate of [How to open a web page from my application?](http://stackoverflow.com/questions/502199/how-to-open-a-web-page-from-my-application) – magicandre1981 Apr 16 '15 at 17:27
2 Answers
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
-
3This 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