0
当使用Web浏览器编码C#时,使用Gecko库时出现问题。C#Gecko web浏览器显示,然后在10秒后退出
我在这里的代码:
public Form1()
{
InitializeComponent();
Gecko.Xpcom.Initialize(Application.StartupPath + "\\xulrunner");
string link = "http://google.com/";
geckoWebBrowser1.Navigate(link);
System.Threading.Thread.Sleep(10000);
Environment.Exit(0);
}
我想,当我运行的应用程序,它会显示我与谷歌的内容,然后自动退出10秒钟后网页浏览器。
谢谢。