none
can we Integrate google chrome/Firefox with .net Web Browser Control? RRS feed

  • Question

  • Is it possisble to integrate google chrome/Firefox with C# .net Web Browser control?

    By default, c# .net web browser control uses IE rendering engine to display web pages. Can we change it to Chrome/Firefox Web Browser instead of IE?

    If it is not possible, what is the alternative approach to use chrome/Firefox in C# windows application for displaying web pages?

    Tuesday, March 17, 2015 10:11 AM

Answers

  • Is it possisble to integrate google chrome/Firefox with C# .net Web Browser control?

    By default, c# .net web browser control uses IE rendering engine to display web pages. Can we change it to Chrome/Firefox Web Browser instead of IE?

    If it is not possible, what is the alternative approach to use chrome/Firefox in C# windows application for displaying web pages?

    I honestly don't think this is the question you want answered.  If it were, you'd already know the answer and you'd probably be able to cite several reasons why you wouldn't want to :-P  I mean no offense to Microsoft by that!

    Both Firefox and Chrome have their own extensibility APIs.  You would want to surf developer.mozilla.com and developer.chrome.com to learn more about those.

    Using DotNET's WebBrowser control is just like building a COM-based BHO Addin for IE, except the control allows you to isolate your code into your own application without muddying the waters of the system-installed browser.

    So you probably have some goal or other in mind, using the WebBrowser control, right?  What's the goal?  The means and ways of achieving that is what I think you want to know.


    Content Removed

    Wednesday, March 18, 2015 9:44 AM

All replies

  • Tuesday, March 17, 2015 10:32 AM
  • Hi ch suresh,

    Here is a short article on how to embed Chrome in a .Net application using CEFSharp.:

    #Embedding Chrome in a WPF VB.NET Application using CEFSharp

    http://www.codeproject.com/Tips/648678/Embedding-Chrome-in-a-WPF-VB-Net-application-using?msg=4654140

    You can use WebKit.NET.  This is a C# wrapper for WebKit, which is the rendering engine used by Chrome. 

    About how to embed firefox here using Geckofx:

    http://www.vbforums.com/showthread.php?692005-Mozilla-Firefox-Gecko-Xulrunner-in-VB-NET-%28versions-14-and-up%29

    Even some project written by VB. But you could get some hints from these good articles.  

    Have a nice day!

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Wednesday, March 18, 2015 7:24 AM
    Moderator
  • Is it possisble to integrate google chrome/Firefox with C# .net Web Browser control?

    By default, c# .net web browser control uses IE rendering engine to display web pages. Can we change it to Chrome/Firefox Web Browser instead of IE?

    If it is not possible, what is the alternative approach to use chrome/Firefox in C# windows application for displaying web pages?

    I honestly don't think this is the question you want answered.  If it were, you'd already know the answer and you'd probably be able to cite several reasons why you wouldn't want to :-P  I mean no offense to Microsoft by that!

    Both Firefox and Chrome have their own extensibility APIs.  You would want to surf developer.mozilla.com and developer.chrome.com to learn more about those.

    Using DotNET's WebBrowser control is just like building a COM-based BHO Addin for IE, except the control allows you to isolate your code into your own application without muddying the waters of the system-installed browser.

    So you probably have some goal or other in mind, using the WebBrowser control, right?  What's the goal?  The means and ways of achieving that is what I think you want to know.


    Content Removed

    Wednesday, March 18, 2015 9:44 AM
  • You can take a look at DotNetBrowser library that allows embedding a Chromium-based WPF component into your .NET application. It has very powerful and simple API. The following sample demonstrates how to create Browser instance and load a web page:

    using System;
    using DotNetBrowser;
    
    namespace MyNamespace
    {
        class Program
        {
            static void Main(string[] args)
            {
                // Provide path to the directory with DotNetBrowser Chromium binaries.
                Environment.SetEnvironmentVariable("DOTNETBROWSER_BIN_DIR", @"D:\Library\Chromium");
                
                // Create Browser instance.
                Browser browser = BrowserFactory.Create();
                browser.LoadURL("http://www.google.com");
            }
        }
    }


    Tuesday, May 12, 2015 3:42 PM