public void NavigateError(object pDisp, ref object url, ref object frame, ref object statusCode, ref bool cancel)
            {
                var e = new WebBrowserNavigateErrorEventArgs((string)url, (string)frame, (int)statusCode);

                _parent.OnNavigateError(_parent, e);
                cancel = e.Cancel;
            }
Esempio n. 2
0
 private void webBrowser_NavigateError(object sender, WebBrowserNavigateErrorEventArgs e)
 {
     e.Cancel = true;
     MessageBox.Show("Unable to access the network.", "Error");
     Close();
 }
 private void OnNavigateError(object sender, WebBrowserNavigateErrorEventArgs e)
 {
     NavigateError?.Invoke(this, e);
 }