Open new web page in new tab in WebBrowser control
问题 I'm using WebBrowser control in my c# application, and I want to open web pages in it. It's completely done. My problem: Any link in the web page that its target is _blank will open in new IE Window. I'd like to open such link in new tab in my application. How to do it? Thanks! 回答1: private void Browser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e) { var webBrowser = (WebBrowser)sender; if (webBrowser.Document != null) { foreach (HtmlElement tag in webBrowser.Document