webbrowser html events vs.2005
this code works for vs.2003, how is this done with vs.2005 beta 2?
Dim doc As mshtml.HTMLDocument = DirectCast(webBrowser1.Document, mshtml.HTMLDocument)
' Cast to the interface that defines the event you're interested in
Dim docevents As mshtml.HTMLDocumentEvents2_Event = DirectCast(doc, mshtml.HTMLDocumentEvents2_Event)
' Define a handler to the onclick event
AddHandler docevents.onclick, AddressOf onclickproc
'Dim docevents As mshtml.HTMLDocumentEvents2_Event = webBrowser1.Document.DomDocument.mshtmlDocumentClass.IhtmlDocument5.onfocusout
AddHandler docevents, AddressOf onclickproc
Need to capture some htmldocument events. The above code works for VS.2003 but not for VS.2005 beta 2. I’ve tried various changes- like changing document to domdocument. I can examine the webbroswer1 object in debug and can see the “webBrowser1.Document.DomDocument.mshtmlDocumentClass.IhtmlDocument5.onfocusout”but can not hook my event handler to it.
Any help would be appreciataed.

