How do I use VB to access the HTML code of a website?
How to Process HTML in VB?
Started by skilletsteve, Aug 30 2006 08:44 AM
1 reply to this topic
#1
Posted 30 August 2006 - 08:44 AM
|
|
|
#2
Posted 30 August 2006 - 09:50 AM
Ok so add the component named "Microsoft Internet Transfer Control 6.0" if you dont know how to add a component see one of my tuts ( link in my sig )
now on ur form add :-
a Textbox and in its properties make Multiline to True and Scrollbars Both
the Microsoft Internet Transfer Control 6.0
A command button
and add this code:-
and now press Command1 and in text1.text after a while you will be displayed the source!
Hope this helped!
EDIT:-
Instead of a textbox you could use a Rich Text Box Component for a better display of the source!
now on ur form add :-
a Textbox and in its properties make Multiline to True and Scrollbars Both
the Microsoft Internet Transfer Control 6.0
A command button
and add this code:-
Private Sub Command1_Click()
Website = Inet1.OpenURL("www.google.com")
Text1.Text = Website
End Sub
and now press Command1 and in text1.text after a while you will be displayed the source!
Hope this helped!
EDIT:-
Instead of a textbox you could use a Rich Text Box Component for a better display of the source!


Sign In
Create Account


Back to top









