AxWebbrowser event handlers no longer work

The event handlers in my program no longer work for some reason. The same exact code that I have run several times before.

object loc = "http://www.google.com/";
object null_obj_str = "";
System.Object null_obj = 0;

this.axWebBrowser1.Navigate2(ref loc , ref null_obj, ref null_obj, ref null_obj_str, ref null_obj_str);

this.axWebBrowser1.DocumentComplete += new AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEventHandler(this.axWebBrowser1_DocumentComplete);

private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
    {//Do some action}

      

There is no reason why this shouldn't work, but what exactly is happening. I've tried other activities and they don't work either. Any input would be greatly appreciated.

+1


a source to share


1 answer


I upgraded from WinXP SP2 to WinXP 3 and my events stopped working as well. After digging around the net, I found that I needed to recreate my InterOp DLL using a program called AXIMP.



+4


a source







All Articles