View Single Post
  #2 (permalink)  
Old 08-30-2006, 01:50 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,323
Credits: 0
Rep Power: 69
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

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:-
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!

Last edited by TcM; 08-30-2006 at 01:52 PM..
Reply With Quote