very strange handler AxWebBrowser1.DocumentComplete

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i want to do following:
Private Sub AxWebBrowser1_DocumentCompleteEventHandler(ByVal sender As
Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent)
Handles AxWebBrowser1.DocumentComplete
Label7.Text = "LOAD DOC " & Now
doc = AxWebBrowser1.Document
End Sub


Private Function doc_HTMLDocumentEvents2_Event_onclick(ByVal pEvtObj As
mshtml.IHTMLEventObj) As Boolean Handles doc.HTMLDocumentEvents2_Event_onclick

do something
return(true)
end function


on my machine (xp SP2) works all fine...
but un my xp embedded (SP1) device it does not execute the
AxWebBrowser1_DocumentCompleteEventHandler....
i don´t know why...
the funny thing is: if i remove the "doc = AxWebBrowser1.Document" line
it will be executed and the label7 got its new text...

have i diffrent versions of the object? ie?

hope you can help
 
Back
Top