private void browserNewWindowEvent(object sender, NewWindowEventArgs e) { if (InvokeRequired) { var a = new NewPageListener(NewPage); Invoke(a, new object[] { e.NewUrl }); } else { NewPage(e.NewUrl); } }
private void chromeWebBrowser1_BrowserNewWindow(object sender, NewWindowEventArgs e) { if (this.InvokeRequired) { NewPageListener a = new NewPageListener(NewPage); this.Invoke(a, new object[] { e.NewUrl, e.Request }); } else { NewPage(e.NewUrl, e.Request); } }
private void browserNewWindowEvent(object sender, NewWindowEventArgs e) { if (InvokeRequired) { var a = new NewPageListener(NewPage); Invoke(a, new object[] {e.NewUrl}); } else { NewPage(e.NewUrl); } }
public void OpenUrl(string url) { NewPageListener a = new NewPageListener(NewPage); this.Invoke(a, new object[] { url, null }); }