【发布时间】:2015-01-12 08:35:10
【问题描述】:
我可以使用以下代码在标准浏览器中打开链接:
public void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
//cancel the current event
e.Cancel = true;
//this opens the URL in the user's default browser
Process.Start(e.Url.ToString());
}
但问题是只有在点击浏览器上的链接时才能打开 IE。使用此代码时,当我更改文档文本时,IE 也会打开。
【问题讨论】:
标签: c# webbrowser-control