How to Add the Firefox and Chrome to C# Browser Control?

心不动则不痛 提交于 2019-12-09 03:25:13

问题


Can you please let me know how I can add other browser controls like Chrome, Firefox, ... to C# web browser control?I am trying to create a HTML and CSS rules tester in C# and I need to have all of them inside the application


回答1:


Assuming that you merely want to use other browsers, not add Chrome or Firefox to the C# Web Browser control...here are some helpful links:

CefSharp Embedded Chromium for .NET: https://github.com/chillitom/CefSharp

Embedding Gecko (firefox engine): https://developer.mozilla.org/en-US/docs/Gecko/Embedding_Mozilla/FAQ/Embedding_Gecko




回答2:


You can't. The web browser control hosts the MSHTML COM object only.




回答3:


Update 2016:

If you need to have all browsers inside your application I suggest you take a look at the below component.

BrowseEmAll Core API

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)



来源:https://stackoverflow.com/questions/14713596/how-to-add-the-firefox-and-chrome-to-c-sharp-browser-control

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