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