Info
Version: | 60.0.56 |
Author(s): | geckofx |
Last Update: | Monday, April 8, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://hg.sr.ht/~hindlemail/geckofx |
NuGet Url: | https://www.nuget.org/packages/Geckofx60.64 |
Install
Install-Package Geckofx60.64
dotnet add package Geckofx60.64
paket add Geckofx60.64
Geckofx60.64 Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
Example Usage:
// In MonoDevelop Project Options -> Run -> Configuration -> Default set the following envrionment variables.
// set env var LD_LIBRARY_PATH to $(ProjectDir)/Firefox-Linux64
// set env var LD_PRELOAD to $(ProjectDir)/Firefox-Linux64/libgeckofix.so
using System;
using System.Windows.Forms;
using Gecko;
[STAThread]
static void Main(string[] args)
{
Xpcom.Initialize("Firefox");
var geckoWebBrowser = new GeckoWebBrowser {Dock = DockStyle.Fill};
Form f = new Form();
f.Controls.Add(geckoWebBrowser);
geckoWebBrowser.Navigate("www.google.com");
Application.Run(f);
}
You will also have to install gtk-sharp3 deb package if not already installed.
apt-get install gtk-sharp3.