Reputation: 20348
I am working on a C# .NET application with System.Windows.Forms.WebBrowser.
IE is not responding properly, so i want to change to Mozilla Firefox.
How can I do this?
Upvotes: 11
Views: 27590
Reputation: 1105
Update 2016:
There are 3 additional options I can suggest that are still actively developed:
A .Net component that can be used to integrate the Chrome engine into your .Net Application. Based on CefGlue but a little faster on updates to the latest Chrome version. Also there is a commercial support option available which might come in handy for some. Of course the component itself is open source.
Another .Net component which can be used to integrate the Firefox engine into your .Net application. This is based on Geckofx but unlike the current version of Geckofx this will work with a normal release build of Firefox. To use Geckofx you will need to build Firefox yourself. Again commercial support is available but the component itself is fully open source.
Need all the different browsers in your .Net Application? Which the BrowseEmAll Core API you can integrate Chrome, Firefox, Webkit and Internet Explorer into your application. This is a commercial product though so be warned.
(Full disclosure: I work for this company so take everything I say with a grain of salt)
Upvotes: 0
Reputation: 28586
System.Windows.Forms.WebBrowser
is just a managed wrapper for the ActiveX control: SHDocVw.WebBrowser
. The wrapper is not without bugs and may not provide the extensibility you need. If you have a working solution I don't suggest port it to use System.Windows.Forms.WebBrowser
.
IE is not based on .Net so you can not use System.Windows.Forms.WebBrowser
to control anything in IE. In fact I don't even suggest wiring BHO in .Net because only one version of CLR can be running in the IE process and your BHO can be running on an unexpected version of CLR.
Upvotes: 2
Reputation: 3374
You cannot achieve this using the System.Windows.Forms.WebBrowser control. It seems there are ways to embed the Gecko rendering engine into a WinForms application.
see this question: Replacing .NET WebBrowser control with a better browser, like Chrome?
Upvotes: 0
Reputation: 30303
You'll want to replace the WebBrowser control with this project: http://code.google.com/p/geckofx/
Upvotes: 4
Reputation: 21191
I was just looking at GeckoFX and WebKit.NET they might be of interest to you. If you want to change the Default WebBrowser control I do not believe this is possible.
Upvotes: 4
Reputation: 887777
You can't.
The WebBrowser
control is a wrapper around the IE ActiveX control, and cannot easily be swapped for Mozilla.
However, you can look into the Mozilla ActiveX Control
Upvotes: 6
Reputation: 9827
Not sure if that's possible/easy, but mono uses Gecko# to implement its version of System.Windows.Forms.WebBrowser. Maybe you can reuse that or rip some useable parts out of that code?
Upvotes: 1