HTMLDocuments and VB6

  • Thread starter Thread starter SBC
  • Start date Start date
S

SBC

Why is it that VB5 has so many easy ways to get an HTMLDocument class filled
in with information on a website: webBrowser control and/or
MSHTML.createDocumentFromUrl ... but in VB6 there seems to be nothing that
works anymore??

I want to use the document.links and document.images properties from the
HTMLDocument class to quickly enumerate through a web site's information,
but I can't get any of these legacy methods to work in an application under
VB6. Oh, and I don't want to have an application with a webBrowser control
that is visible (for some reason if the .visible property is false then the
document object does not get filled in).

Anyone with a suggestion? Any thoughts/comments would be appreciated.
 
Hello SBC,

You're asking that question of people who have moved on from VB6 to VB.NET. ;-)
However, we still use the WebBrowser Control.

As a workaround, you could try putting the WebBrowser inside a Panel or something such
that it is out of bounds, or cover the Panel up with something else.

It may be a coding problem, however, so it might be useful to post some code in one of
the many groups for earlier versions of VB, eg
news://msnews.microsoft.com/microsoft.public.vb.controls.internet

Regards,
Fergus
 
* "SBC said:
Why is it that VB5 has so many easy ways to get an HTMLDocument class filled
in with information on a website: webBrowser control and/or
MSHTML.createDocumentFromUrl ... but in VB6 there seems to be nothing that
works anymore??

This is a VB.NET language group. You may want to turn to one of the VB
Classic groups: microsoft.public.vb.*.
 
Back
Top