<p>I'd love to know if there is such a thing as a Gecko.NET ;) I mean, just like we can embed a WebView and that is an "instance" of IE7 inside any Windows Forms application (and tell it to <code>navigateto(fancy_url);</code>). I'd love to use Firefox or WebKit. </p>

<p>Anybody tried this?</p>

<p><strong>UPDATE</strong>: Please bear in mind that although it is possible to embed Gecko using the mentioned controls, it is still impossible to <strong>print</strong> while using Gecko.</p>

<p><strong>UPDATE March 2010</strong>: It’s still not possible to print natively using GeckoFX, however a couple of methods exist that <em>may</em> be enough, depending upon what you’re trying to do. 
See: <a href="http://geckofx.org/viewtopic.php?id=796" rel="noreferrer">http://geckofx.org/viewtopic.php?id=796</a> for more information.</p>

<p><strong>UPDATE October 2013</strong>: I am no longer doing Windows development so I have no interest in this, but seems like the development of Gecko can be found here: <a href="https://bitbucket.org/geckofx" rel="noreferrer">https://bitbucket.org/geckofx</a> and it seems to be recently updated. Leaving this here for future Windows devs ;)</p>

<p><strong>UPDATE January 2017</strong>: I have gotten an email from a company called <a href="http://www.teamdev.com" rel="noreferrer">TeamDev</a>. They created a Chromium-based .NET browser component called "DotNetBrowser" which can be used to display modern web pages in Windows Forms applications. </p>

<p>To quote the email directly:</p>

<blockquote>
  <p>Here are some details about the component, which might be helpful:</p>
</blockquote>

<ol>
<li>DotNetBrowser is based on Chromium, thus supporting HTML5, CSS3, JS and the latest web standards. The underlying Chromium version of the library is regularly updated.</li>
<li>The component is suitable for WPF as well as Windows Forms desktop applications, and works both for C# and VB.NET.</li>
<li>The library is licensed commercially, however free licences are provided for Open Source and academic projects.</li>
</ol>

<p><strong>Disclaimer:</strong> <em>I have not used this DotNetBrowser for I no longer do Windows Development but may be worth checking if you're looking for a solution to this.</em></p>

[{'answer_id': 26156, 'author': 'TheSmurf', 'author_id': 1975282, 'author_profile': 'https://Stackoverflow.com/users/1975282', 'pm_score': 3, 'selected': False, 'text': '<p>It certainly is possible. All you need to do is register the Mozilla ActiveX control (mozctlx.dll I believe), and you can drag it onto your form as any ActiveX control. The programming interface is similar (though not identical) to the IE one, and you can even use the Microsoft.MSHTML.dll managed library for control in some cases.</p>\n\n<p>I believe this is packaged with Firefox. If not, you can get just the embeddable bits from Mozilla as well. Just do a Google search for Mozilla ActiveX control or Mozilla Embedding C# and that should take you down the right path.</p>\n'}, {'answer_id': 26365, 'author': 'wfarr', 'author_id': 2286, 'author_profile': 'https://Stackoverflow.com/users/2286', 'pm_score': 2, 'selected': False, 'text': '<p>Additionally, if you find yourself using Gtk instead of Windows.Forms, there is a tarball of webkit-sharp available that allows for easy embedding of WebViews into Gtk# applications.</p>\n'}, {'answer_id': 26385, 'author': 'TheSmurf', 'author_id': 1975282, 'author_profile': 'https://Stackoverflow.com/users/1975282', 'pm_score': 2, 'selected': False, 'text': "<p>@Martin: Yes, the Adam Locke version is outdated. But that's because a separate distribution is not necessary. It's built with the rest of the Mozilla codebase now.</p>\n\n<p>If you download Prism (ie XulRunner), that will give you a base that you can customize to your needs, and this includes the most recent version of the control (in the \\Prism\\xulrunner directory, you'll find mozctlx.dll).</p>\n\n<p>@Greg: Actually, it is an ActiveX control. Incidentally, all ActiveX controls <em>are</em> COM controls. ActiveX is built on COM.</p>\n"}, {'answer_id': 31912, 'author': 'HS.', 'author_id': 618, 'author_profile': 'https://Stackoverflow.com/users/618', 'pm_score': 7, 'selected': True, 'text': '<p><a href="http://code.google.com/p/geckofx/" rel="noreferrer">http://code.google.com/p/geckofx/</a></p>\n\n<p>This is a nice .NET-wrapped version of Gecko</p>\n'}, {'answer_id': 882242, 'author': 'garthy', 'author_id': 25504, 'author_profile': 'https://Stackoverflow.com/users/25504', 'pm_score': 2, 'selected': False, 'text': '<p>I Belive "Gecko FX"[1] is the thing you need. </p>\n\n<p>To Quote from the web site</p>\n\n<p>"""\nGeckoFX is a Windows Forms control written in clean, commented C# that embeds the Mozilla Gecko browser control in any Windows Forms Application. It also contains a simple class model providing access to the HTML and CSS DOM.\n"""</p>\n\n<p>1) I can\'t post a link as "new users aren\'t allowed to add hyperlinks" Search for "geckofx" on google code.</p>\n'}, {'answer_id': 5034713, 'author': 'Scott', 'author_id': 412008, 'author_profile': 'https://Stackoverflow.com/users/412008', 'pm_score': 3, 'selected': False, 'text': '<p>GeckoFX is no longer being updated. The alternative is the <a href="http://se7en-soft.com/moznet" rel="noreferrer" title="MozNet">MozNet XulRunner wrapper</a> by Se7en Soft. MozNet has a ton of features that GeckoFX doesn\'t and is being actively updated and maintained.</p>\n'}, {'answer_id': 5078414, 'author': 'Scott', 'author_id': 412008, 'author_profile': 'https://Stackoverflow.com/users/412008', 'pm_score': 3, 'selected': False, 'text': "<p>I'd just like to point out, to all looking to embed Gecko into their applications, that the GeckoFX project appears to have been abandoned by its creators (Skybound Software). MozNET, while previously based on GeckoFX, sorta' picked up the ball and ran with it. It has the full ability to print, do print previews and allows you to set it all up via the native Windows print dialog, even - <strong>and a whole lot more</strong>.</p>\n"}, {'answer_id': 7678403, 'author': 'George', 'author_id': 982704, 'author_profile': 'https://Stackoverflow.com/users/982704', 'pm_score': 2, 'selected': False, 'text': '<p>OpenWebKitSharp is a wrapper arount the WebKit engine (nightly) and is very advanced. Take a look at here (OpenWebKitSharp section): <a href="http://code.google.com/p/open-webkit-sharp/" rel="nofollow">http://code.google.com/p/open-webkit-sharp/</a></p>\n'}, {'answer_id': 7947460, 'author': 'John Hatton', 'author_id': 723299, 'author_profile': 'https://Stackoverflow.com/users/723299', 'pm_score': 2, 'selected': False, 'text': '<p>As of October 30, 2011, there is new information to add since the time of the previous posts.  Specifically, while Skybound stopped maintaining their version, there is at least one actively maintained, free, open-source fork available.</p>\n\n<p>I\'m using <a href="https://bitbucket.org/geckofx" rel="nofollow">Hindle\'s fork</a> at BitBucket, which, by virtue of his tool which parses XpCom idls and creates c# wrappers, is rapidly updated with support for each new version of Firefox/Gecko.</p>\n\n<p>See <a href="http://www.geckofx.org/viewtopic.php?id=1671" rel="nofollow">this post</a> for an overview of other choices.</p>\n'}, {'answer_id': 35378878, 'author': 'daniel.herken', 'author_id': 644394, 'author_profile': 'https://Stackoverflow.com/users/644394', 'pm_score': 2, 'selected': False, 'text': '<p><strong>Update 2016:</strong></p>\n\n<p><a href="http://www.browseemall.com/CoreAPI/Gecko" rel="nofollow">BrowseEmAll.Gecko</a></p>\n\n<p>A .Net component which can be used to integrate the <strong>Firefox engine</strong> into your .Net application. This is based on <a href="https://bitbucket.org/geckofx/" rel="nofollow">Geckofx</a> but unlike the current version of Geckofx this will work with a normal release build of Firefox. To use Geckofx you will need to build Firefox yourself. Again <strong>commercial support</strong> is available but the component itself is fully <strong>open source</strong>. </p>\n\n<p><em>(Full disclosure: I work for this company so take everything I say with a grain of salt)</em></p>\n'}]
['https://Stackoverflow.com/questions/26147', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2684/']