borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Internet History) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : MSHTML
Poster Message
m_carryme
Level: Guest


icon MSHTML

Hi pals,

Any information on MSHTML is appreciated. I have spent a lot of time in Microsofts web site. But I can't find how to implement it in my VB project yet. Do you have any clues? Even the slightest ideas.

Thanks

16-11-2002 at 09:38 AM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon 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)

23-11-2002 at 09:42 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Internet Applications : MSHTML
Previous Topic (Internet History) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder