private void IE_NavigateError(object sender, DWebBrowserEvents2_NavigateErrorEvent e) { AxWebBrowser wb = (AxWebBrowser)sender; // Ignore errors for embedded documents if (wb.Application != e.pDisp) { return; } // If we get here, the main document cannot be navigated // to meaning there is nothing to draw, so we just croak. Console.Error.WriteLine("Failed to navigate to {0} (0x{1:X08})", e.uRL, e.statusCode); ReportCapture(null); wb.Dispose(); }
private void AxWebBrowser_NavigateError(object sender, DWebBrowserEvents2_NavigateErrorEvent e) { BrowserNavigateErrorEventArgs args = new BrowserNavigateErrorEventArgs(e); OnNavigateError(args); }
internal BrowserNavigateErrorEventArgs(DWebBrowserEvents2_NavigateErrorEvent e) { _statusCode = e.statusCode; _url = e.uRL; }
private void IE_NavigateError(object sender, DWebBrowserEvents2_NavigateErrorEvent e) { AxWebBrowser wb = (AxWebBrowser)sender; // Ignore errors for embedded documents if (wb.Application != e.pDisp) return; // If we get here, the main document cannot be navigated // to meaning there is nothing to draw, so we just croak. Console.Error.WriteLine("Failed to navigate to {0} (0x{1:X08})", e.uRL, e.statusCode); ReportCapture(null); wb.Dispose(); }