Deza

Hi

In a very simple BHO done with C#, in the method SetSite I added the DocumentComplete and WindowStateChanged.

Some as..

webBrowser.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(this.OnDocumentComplete);webBrowser.WindowStateChanged += new DWebBrowserEvents2_WindowStateChangedEventHandler(webBrowser_WindowStateChanged);

With the DocumentComplete I haven't problem.

But, when I add the WindowStateChanged event, the SetSite method never is called... I don't know why.

The body of WindowStateChanged is empty.

I did the same test with the HelloWorld (http://msdn2.microsoft.com/en-us/library/bb250489.aspx) sample in C++ and it worked fine.

I would appreciate any help