问题
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