Click here to Skip to main content
14,271,847 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi

I've read that there is a way to embed an open-source browser like chrome or Firefox in a Windows form application instead of the inbuilt Web Browser in .Net.

But I don't know how to do this.

Could any one please give me an example of how to do this?

Thank you very much.
Posted
Updated 2-Oct-17 22:01pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

Chromium Embedded Framework[^]

CefSharp[^]

CefGlue[^]

All those sites have example projects and good documentation on using the Chromium framework in a .NET application.
   
Comments
wborgsm 4-Mar-15 10:04am
   
In Feb 2015 I published another .NET bindings project for CEF:
https://bitbucket.org/chromiumfx/chromiumfx
It includes a web browser control for Forms applications.
Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 3

Hi,

To embed Chrome, use WebKit.NET:
http://webkitdotnet.sourceforge.net/[^]
To embed Firefox, use GeckoFX:
http://code.google.com/p/geckofx/[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 4

A few of the projects have moved or no longer maintained.
- CEFGlue now looks to be replaced by Xilium
- webkitdonet doesn't look like it is still maintained
- GeckoFX is located on bitbucket now and no longer on code.google

The documentation for the embedded frameworks isn't always straightforward or exist.

I've written a short article on how to embed Chrome in a .Net application using CEFSharp.: http://www.codeproject.com/Tips/648678/Embedding-Chrome-in-a-WPF-VB-Net-application-using?msg=4654140

There is also an excellent write up on 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
   
Rate this:
Please Sign up or sign in to vote.

Solution 6

Here are the steps to embed Chrome browser in .Net application:

http://www.umaranis.com/2013/10/16/how-to-embed-chrome-browser-in-net-application/[^]
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 7

Check out: http://www.awesomium.net, should be what you need.
   
Comments
adriancs 1-Apr-14 19:10pm
   
Awesomium is used in Chromium. I have written an open source project by using awesomium. Take a look at http://exhtmleditor.codeplex.com/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100