[英]click on a link event webbrowser c#?
I want to open a link in IE browser from the web browser control in my winform... the webbrowser control navigate to a page when the user click on a link it opens in the internet explorer browser.我想从我的winform中的web浏览器控件在IE浏览器中打开一个链接......当用户单击它在Internet Explorer浏览器中打开的链接时,webbrowser控件导航到一个页面。
Basically handle the WebBrowser.Navigating Event , cancel the navigation and open up the url in explorer like this:基本上处理WebBrowser.Navigating Event ,取消导航并在资源管理器中打开 url ,如下所示:
private void WebBrowserNavigating(object sender, WebBrowserNavigatingEventArgs e)
{
e.Cancel = true;
Process.Start("iexplorer.exe", e.Url);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.