private void webBrowser1_NewWindow(object sender, CancelEventArgs e)
{
e.Cancel = true;
try
{
string url = this.webBrowser1.Document.ActiveElement.GetAttribute("href");

this.webBrowser1.Url = new Uri(url);
}
catch
{
}
}

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2021-12-04
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案