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();
    }
예제 #2
0
        private void AxWebBrowser_NavigateError(object sender, DWebBrowserEvents2_NavigateErrorEvent e)
        {
            BrowserNavigateErrorEventArgs args = new BrowserNavigateErrorEventArgs(e);

            OnNavigateError(args);
        }
예제 #3
0
 internal BrowserNavigateErrorEventArgs(DWebBrowserEvents2_NavigateErrorEvent e)
 {
     _statusCode = e.statusCode;
     _url        = e.uRL;
 }
예제 #4
0
    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();
    }