You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
908 B
29 lines
908 B
using Gecko;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Demo.WinForms
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
private readonly GeckoWebBrowser _geckoWebBrowser;
|
|
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
Xpcom.Initialize("Firefox");
|
|
this._geckoWebBrowser = new GeckoWebBrowser { Dock = DockStyle.Fill };
|
|
this.Controls.Add(_geckoWebBrowser);
|
|
this._geckoWebBrowser.Navigating += _geckoWebBrowser_Navigating;
|
|
this._geckoWebBrowser.Navigated += _geckoWebBrowser_Navigated;
|
|
this._geckoWebBrowser.Navigate("http://localhost:5000/index.html");
|
|
}
|
|
|
|
private void _geckoWebBrowser_Navigated(object sender, GeckoNavigatedEventArgs e)
|
|
{
|
|
}
|
|
|
|
private void _geckoWebBrowser_Navigating(object sender, Gecko.Events.GeckoNavigatingEventArgs e)
|
|
{
|
|
}
|
|
}
|
|
} |