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

后端 未结 3 1426
庸人自扰
庸人自扰 2021-01-07 08:57

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# a

相关标签:
3条回答
  • 2021-01-07 09:33

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

    0 讨论(0)
  • 2021-01-07 09:33

    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)

    0 讨论(0)
  • 2021-01-07 09:35

    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

    0 讨论(0)
提交回复
热议问题