stickleprojects Level: Moderator

 Registered: 09-09-2002 Posts: 891
|
Re: MSHTML
Hi,
Theres lots of code for this in the site, but its all hidden away under DHTML.
Reference the MSHTML dll in your VB.
Create a form with a webbrowser control (internet control) on it.
Use the webbrowser.navigate2 method to load a webpage.
In the webbrowser_onloadcomplete (or downloadcomplete), declare a variable of type IHTMLDocument.
Set this to the webbrowser.document property.
Now you can use the IHTMLxxxx data types to wander around the tree.
Hope this helps,
Kieron
Note, there a numerous versions of the interfaces in this dll (ie. classes IHtmlDocument1, IHTMLDocument2, etc.), each one exposes slightly different methods, so if you cant find the one you need try changing the data type.
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
|