简单易懂的一个GeckoFx demo 。 使用vs2012
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 144 2015-10-23 18:03 WindowsFormsApplication1WindowsFormsApplication1app.config
文件 1421312 2014-07-21 16:44 WindowsFormsApplication1WindowsFormsApplication1inDebugGeckofx-Core.dll
文件 146 2013-08-19 10:20 WindowsFormsApplication1WindowsFormsApplication1inDebugGeckofx-Core.dll.config
文件 134144 2014-07-21 16:44 WindowsFormsApplication1WindowsFormsApplication1inDebugGeckofx-Winforms.dll
文件 9216 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.exe
文件 117 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.exe.config
文件 24064 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.pdb
文件 21464 2015-10-23 18:02 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe
文件 117 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe.config
文件 490 2012-06-06 02:06 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe.manifest
文件 11776 2014-04-21 23:30 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerAccessibleMarshal.dll
文件 67072 2014-04-21 23:33 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerreakpadinjector.dll
文件 109056 2014-04-21 23:33 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnercrashreporter.exe
文件 4003 2014-04-21 22:49 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnercrashreporter.ini
文件 2106216 2010-05-26 11:41 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerD3DCompiler_43.dll
文件 99 2014-04-21 23:35 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerdependentlibs.list
文件 3274 2014-04-21 22:45 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerdictionariesen-US.aff
文件 624314 2014-04-21 22:45 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerdictionariesen-US.dic
文件 899 2014-04-21 23:48 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerfreebl3.chk
文件 296960 2014-04-21 22:57 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerfreebl3.dll
文件 4892160 2014-04-21 23:29 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnergkmedias.dll
文件 30208 2014-04-21 23:30 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerIA2Marshal.dll
文件 263 2014-04-21 23:00 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerjs-gdb.py
文件 3428864 2014-04-21 23:00 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerjs.exe
文件 45056 2014-04-21 23:10 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerlibEGL.dll
文件 638976 2014-04-21 23:10 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerlibGLESv2.dll
文件 389 2014-04-21 22:44 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerLICENSE
文件 8704 2014-04-21 22:56 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnermozalloc.dll
文件 135168 2014-04-21 22:56 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnermozglue.dll
文件 3378688 2014-04-21 23:00 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnermozjs.dll
............此处省略119个文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Gecko;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
GeckoWebBrowser browser;
public Form1()
{
InitializeComponent();
var app_dir = Path.GetDirectoryName(Application.ExecutablePath);
Xpcom.Initialize(Path.Combine(app_dir “xulrunner“));
browser = new GeckoWebBrowser();
browser.Dock = Dockstyle.Fill;
this.browser.Name = “browser“;
this.Controls.Add(browser);
}
private void Form1_Load(object sender EventArgs e)
{
browser.Navigate(“http://www.go50000.com“);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 144 2015-10-23 18:03 WindowsFormsApplication1WindowsFormsApplication1app.config
文件 1421312 2014-07-21 16:44 WindowsFormsApplication1WindowsFormsApplication1inDebugGeckofx-Core.dll
文件 146 2013-08-19 10:20 WindowsFormsApplication1WindowsFormsApplication1inDebugGeckofx-Core.dll.config
文件 134144 2014-07-21 16:44 WindowsFormsApplication1WindowsFormsApplication1inDebugGeckofx-Winforms.dll
文件 9216 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.exe
文件 117 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.exe.config
文件 24064 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.pdb
文件 21464 2015-10-23 18:02 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe
文件 117 2015-10-23 18:01 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe.config
文件 490 2012-06-06 02:06 WindowsFormsApplication1WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe.manifest
文件 11776 2014-04-21 23:30 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerAccessibleMarshal.dll
文件 67072 2014-04-21 23:33 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerreakpadinjector.dll
文件 109056 2014-04-21 23:33 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnercrashreporter.exe
文件 4003 2014-04-21 22:49 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnercrashreporter.ini
文件 2106216 2010-05-26 11:41 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerD3DCompiler_43.dll
文件 99 2014-04-21 23:35 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerdependentlibs.list
文件 3274 2014-04-21 22:45 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerdictionariesen-US.aff
文件 624314 2014-04-21 22:45 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerdictionariesen-US.dic
文件 899 2014-04-21 23:48 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerfreebl3.chk
文件 296960 2014-04-21 22:57 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerfreebl3.dll
文件 4892160 2014-04-21 23:29 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnergkmedias.dll
文件 30208 2014-04-21 23:30 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerIA2Marshal.dll
文件 263 2014-04-21 23:00 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerjs-gdb.py
文件 3428864 2014-04-21 23:00 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerjs.exe
文件 45056 2014-04-21 23:10 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerlibEGL.dll
文件 638976 2014-04-21 23:10 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerlibGLESv2.dll
文件 389 2014-04-21 22:44 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnerLICENSE
文件 8704 2014-04-21 22:56 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnermozalloc.dll
文件 135168 2014-04-21 22:56 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnermozglue.dll
文件 3378688 2014-04-21 23:00 WindowsFormsApplication1WindowsFormsApplication1inDebugxulrunnermozjs.dll
............此处省略119个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)