Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted

wrote:
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.


The site is obviously written by morons then.


wrote:
So i want to know that is there any way that i can change browsing client of webbrowser component to Firefox intead of IE...


I am shocked to think that you may really not realise what you're asking. Of course not. Microsoft provides .NET and they write IE so that it supports being used as a component in .NET. FF will never work that way. You could try embedding FF in a window, using p/invoke calls, and hope that it has some sort of COM interface, or perhaps write an add in you can use to access it's functionality, but there is no way that FF will magically support the WebBrowser control functionality in .NET.
 
Share this answer
 
Well there is a component gecko available which i have found. its very similar to .NET webBrowser component but uses firefox as its client. http://code.google.com/p/geckofx/[^]
 
Share this answer
 
webBrowser1.Url=new System.Uri(TextBox1.Text,UriKind.AbsoluteOrRelative);

:thumbsup:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900