1,105,225 Community Members

How to open a website in c# webbrowser component

Member Avatar
j4jawaid
Newbie Poster
6 posts since Jan 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Can anyone tell me that how can i open a site in webbrowser component of c#. Usually i open the site easily using the following code
webBrowser1.Url = new Uri("http://google.com");

But now i want to access a site which is not allowed to be opened by IE and one can only visit that site through firefox. I tried to open that site in webbrowser component but site was not functioning properly.. So i want to know that is there any way that i can change browsing client of webbrowser component to Firefox intead of IE...

Member Avatar
avirag
Posting Whiz
312 posts since Jun 2009
Reputation Points: 10 [?]
Q&As Helped to Solve: 36 [?]
Skill Endorsements: 0 [?]
 
0
 

well for this first set your default browser IE, some time it gives error, ande after that just go to the property of webbrowser contro, and there you find a option url, in url you just write the address of any website.like:
http://www.nameofwebsite.com

Hope it helps you.....:)

Member Avatar
j4jawaid
Newbie Poster
6 posts since Jan 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

well for this first set your default browser IE, some time it gives error, ande after that just go to the property of webbrowser contro, and there you find a option url, in url you just write the address of any website.like:
http://www.nameofwebsite.com

Hope it helps you.....:)

Well i know this thing bro that how to open a url in webBrowser component. What i am asking is that how to change the client of webBrowser from IE to firefox so it uses firefox browser to open any page. also i dont want to open firefox using system.digonostic what i want is a firefox browsing component embedded on win form....

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: