Embedding Firefox into a .NET control

♀尐吖头ヾ 提交于 2019-12-21 20:32:57

问题


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


来源:https://stackoverflow.com/questions/12083146/embedding-firefox-into-a-net-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!