I need a Gecko WebBrowser Control
I need a sample code or a link which explains how to use GECKO
If anyone has used Gecko, I could do with some advice
Gecko is the layout engine developed by the Mozilla Project and used in many apps/devices, including Firefox and Firefox OS. Web browsers need software called a layout engine to interpret HTML, CSS, JavaScript, and embedded content (like images) and draw everything to your screen.
GeckoFX 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.
Original tutorial with detailed snapshots can be found here.
A most recent update can be found here. Please upvote in that article if you find it useful :)
To embed Gecko browser in your winform application, you need:
GeckoFx .net assembly file, which you can download from here. Also choose the correct version which matches the XulRunner version.
Unpack the GeckoFX-330.zip, you will get below files:
Drag a GeckoWebBrowser control to the winform designer, and let’s call it “browser”
In the form1.cs file, add below code:
The line Gecko.Xpcom.Initialize(@”..\xulrunner”); specifies where the xulrunner runtime is located. In this case, we put it into a folder (@”..\xulrunner”).
Now run the application, yeah~~~
You should check out http://code.google.com/p/geckofx/. To get some code samples see the Wiki page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With