Click here to Skip to main content
15,886,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
{
webBrowser1.Url = new Uri( "http://SomeRandomUrl");
            ((SHDocVw.WebBrowser)webBrowser1.ActiveXInstance).NavigateError += new SHDocVw.DWebBrowserEvents2_NavigateErrorEventHandler(Form1_NavigateError);//How can i found form1_NavigateError is calling or not from here?Because Some times when error is not found its not calling
.
.
.}
void Form1_NavigateError(object pDisp, ref object URL, ref object Frame, ref object StatusCode, ref bool Cancel)
        {
            int currentStatusCode = (int)StatusCode;



How can i found form1_NavigateError is calling or not from here?Because Some times when error is not found its not calling?

Please help me out.
Posted
Comments
Vedat Ozan Oner 4-Mar-14 9:30am    
why don't you use this? http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser%28v=vs.110%29.aspx
ZurdoDev 4-Mar-14 21:02pm    
http://msdn.microsoft.com/en-us/library/bb268221(v=vs.85).aspx

What errors are happening that you aren't able to catch?
Ashwani Gusain 5-Mar-14 7:24am    
Hi Ryan actually when i am using for loop as i have more then one urls and i have to check all links under for loop in in that case Form1_NavigateError is not called.
please suggest if u have any idea?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900