Exemple #1
0
 private void AxWebBrowser1_NavigateError(object sender, AxSHDocVw.DWebBrowserEvents2_NavigateErrorEvent e)
 {
     if (Convert.ToInt32(e.statusCode) == 400)
     {
         labStatus.Text = "网站未找到...";
         if (!string.IsNullOrEmpty(ERROR_GOTO))
         {
             OpenUrl(ERROR_GOTO);
         }
     }
 }
Exemple #2
0
 void Browser_NavigateError(object sender, AxSHDocVw.DWebBrowserEvents2_NavigateErrorEvent e)
 {
     Debug.WriteLine("Event: DWebBrowserEvents2 NavigateError");
 }