Winform webBrowser 不跳转网页

 

  private void webBrowser1_NewWindow(object sender, CancelEventArgs e)
        {
            string url = ((WebBrowser)sender).StatusText;
            webBrowser1.Navigate(url);
            e.Cancel = true;
        }

 

posted @ 2015-12-23 10:17  奇风★逍遥  阅读(827)  评论(0编辑  收藏  举报