Open URL from Windows Applicaiton using C#.net [Resolved]

Posted by Naraayanan under C# on 5/4/2012 | Points: 10 | Views : 10667 | Status : [Member] | Replies : 5
Hi,
How to open URL from Windows Application ? Different browsers are in our system. I want to open a URL in Mozilla FireFox using C#.net in Windows Application.
Please help me.
Thanks in Advanced.

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/



Responses

Posted by: Siva524 on: 5/4/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
take a button
name it as firefox
write code for button click as
add a namespace to your application System.Diagnostics namespace
process.start("firefox.exe","here write your url");[/ U]

then check browser open with that particular url


Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 5/4/2012 [Member] Silver | Points: 25

Up
0
Down
Hi,

System.Diagnostics.Process.Start("firefox.exe", "http://www.google.com"); 



Regards,
Singaravel M

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kumar_jay99 on: 5/4/2012 [Member] Starter | Points: 25

Up
0
Down
using System.Diagnostics;
ProcessStartInfo sInfo = new ProcessStartInfo("http://mysite.com/");
Process.Start(sInfo);

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 5/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Siva,
Thanks it works.

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 5/26/2012 [Member] Bronze | Points: 25

Up
0
Down
ProcessStartInfo sInfo = new ProcessStartInfo("http://mysite.com/");  

Process.Start(sInfo);


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response