Hi!
From the event "Webbrowser1_DocumentCompleated", i try to call a function called "lookup_all_htmlTables". This is not working, anyone know why
The line lookup_all_htmlTables() is not executed. !
I have this code in the Webbrowser1_DocumentCompleated
--cut--
Dim htmDoc As HtmlDocument = WebBrowser1.Document
AddHandler htmDoc.Click, New HtmlElementEventHandler(AddressOf Document_MouseClick)
lookup_all_htmlTables(webbrowser1.document)
--cut--
--cut--
Sub lookup_all_htmlTables(tmpHtml as HtmlDocument)
Dim objects, tblCount
Dim tblName As String
Dim tmpHtml As mshtml.HTMLDocument
tmpHtml = WebBrowser1.Document
tblName = ""
tblCount = 0
For objects = 1 To tmpHtml.all.length - 1
tblCount = tblCount + 1
Next
--cut--
/jimmy

Webbrowser - Webbrowser1_DocumentCompleated
Daniel Adeniji
The Document_MouseClick event is not used to call lookup_all_htmlTables.
I try to call lookup_all_htmlTables when the document i compleatly loaded.
What do you mean with "event actually fired"
/Jimmy
Ahoapap
I found the problem, i was useing msHtml.htmlDocument istead of system.windows.forms.HtmlDocument
Whitney Weaver
Is the call to lookup_all_htmlTables in the Document_MouseClick function