Embedding Firefox into a .NET control

2019-04-11 18:50发布

问题:

I am beginner in c# and .net programing and I want to know whether i can use Mozilla Firefox as instance browser of webBrowser control, as by default webBrowser control use Internet Explorer.

回答1:

The Mozilla ActiveX Control uses the Gecko layout engine to deliver a fully programmable HTML and XML rendering control for ActiveX developers.

The API is similar to the Internet Explorer ActiveX control so it maintains a high degree of compatibility.

Gecko is the same engine that powers Mozilla, Mozilla Firefox



回答2:

There's an old WinForms Gecko (Firefox) control somewhere, but the best non-IE .NET control you'll get is Awesomium, which is based on Chrome.



回答3:

Here's the Mozilla ActiveX control that you can use.

After you have installed it,
in your Visual Studio go to

 Toolbox>right-click>choose items>COM Components>Mozilla Browser Class