private void Browser_NewWindowCreated(object sender, NewWindowCreatedEventArgs e) { FmTabBase.Default.AddTab(e.WebKitBrowser); if (!FmTabBase.Default.Visible) { FmTabBase.Default.Show(); } }
private void webKitBrowser1_NewWindowCreated(object sender, WebKit.NewWindowCreatedEventArgs e) { AddTab(e.WebKitBrowser); }
void browser_NewWindowCreated(object sender, NewWindowCreatedEventArgs args) { tabControl.TabPages.Add(new WebBrowserTabPage((WebKitBrowser)args.WebKitBrowser, false)); }
private void webKitBrowser1_PopupCreated(object sender, NewWindowCreatedEventArgs e) { if (blockPopupsToolStripMenuItem.Checked) MessageBox.Show("A popup has been blocked"); else { Form f = new Form(); f.Show(); WebKitBrowser wb = e.WebKitBrowser; wb.AllowDownloads = true; wb.Visible = true; wb.Name = "browser"; wb.Dock = DockStyle.Fill; wb.DocumentTitleChanged += new EventHandler(wb_DocumentTitleChanged); wb.FaviconAvailable += new FaviconAvailable(wb_FaviconAvaiable); f.Controls.Add(wb); } }