private void axMozillaBrowser1_BeforeNavigate2(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_BeforeNavigate2Event e) { }
private void axMozillaBrowser1_NavigateComplete2(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NavigateComplete2Event e) { this.Text = axMozillaBrowser1.LocationName + " - CSBrowse"; url.Text = axMozillaBrowser1.LocationURL; }
private void axMozillaBrowser1_CommandStateChange(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_CommandStateChangeEvent e) { if ((e.command & 0x1) != 0) // Forward { btnForward.Enabled = e.enable; } if ((e.command & 0x2) != 0) // Backward { btnBack.Enabled = e.enable; } }
private void axMozillaBrowser1_NewWindow2(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NewWindow2Event e) { Form1 f = new Form1(); f.Show(); object n = null; f.axMozillaBrowser1.Navigate("about:blank", ref n, ref n, ref n, ref n); e.ppDisp = f.axMozillaBrowser1.Application; }
private void axMozillaBrowser1_StatusTextChange(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_StatusTextChangeEvent e) { statusMessagePane.Text = e.text; }
public void OnTitleChangeGecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_TitleChangeEvent e) { mBrowserWindow.OnTitleChange(e.text); }
public void OnProgressGecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_ProgressChangeEvent e) { mBrowserWindow.OnProgress(e.progress, e.progressMax); }
public void OnNewWindowGecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NewWindow2Event e) { bool allowPopups = ServiceManager.Preferences.GetBoolPref("browser.allowpopups"); if (allowPopups) { BrowserWindow window = new BrowserWindow(); window.WebBrowser.RealizeLayoutEngine(); window.Show(); e.ppDisp = window.WebBrowser.Gecko; } else e.cancel = true; }
public void OnNavigateComplete2Gecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NavigateComplete2Event e) { mBrowserWindow.OnNavigateComplete2(e.uRL as string); }