' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
On Error Resume Next
For Each IE As InternetExplorer In New ShellWindows
MsgBox(IE.Document.DocumentElement.innerHTML)
Next IE
On Error GoTo -1
///
Herfried's solution will get you the current state of the DOM including
DHTML modifications - this is probably what you want. In the case that you
want to display the "true" source (what was initially downloaded) see http://support.microsoft.com/?kbid=311288
Got the reference OK, but it's still not liking this syntax. Just to
make this a little harder, I should mention that I would like to detect
(with a global hook) where the user clicked on the web page, so I can
tell what section of text they are looking at...
I notice a reference to new features in .Net 2.0 that might make this
easier. Should I just upgrade to the new version and use those? Are you
familiar with them?
Honestly, I have no experience with the 2.0 WebBrowser control other than
small test applications. If you want FULL control over the WebBrowser,
you're probably better off doing it yourself (starting with the wrapper),
but if you can live with the limited functionality that the 2.0 control
gives you, do it... it's MUCH easier.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.