void browser_NewWindowRequest(object sender, NewWindowRequestEventArgs args) { args.Cancel = (MessageBox.Show(args.Url, "Open new window?", MessageBoxButtons.YesNo) == DialogResult.No); }
private void NewTabButton_Click( object sender, RoutedEventArgs e ) { var eventArgs = new NewWindowRequestEventArgs(); NewWindowRequest( this, eventArgs ); }
private void webBrowser_NewWindowRequest(object sender, NewWindowRequestEventArgs e) { openNewWebBrowserTabPage(mainTabControl.SelectedIndex + 1, e.Url); }
void WpfWebBrowserHelper_NewWindow( object sender, WpfWebBrowserExtender.NewWindowEventArgs e ) { var eventArgs = new NewWindowRequestEventArgs(); eventArgs.Url = e.url; NewWindowRequest( this, eventArgs ); }
public void NewWindow(object sender, NewWindowRequestEventArgs e) { NewTab(e.Url); }