PDA

Click to See Complete Forum and Search --> : Pulling HTML from a website using VB6


Lloyd
Jul 7th, 1999, 05:34 PM
Does anyone know how to pull HTML code from a webpage using VB6?

Thanks for taking the time to read this!!

Lloyd

Ryan
Jul 7th, 1999, 07:50 PM
You can do it with two different controls in visual basic. You can try this code using the Microsoft Internet Transfer Control.

Private Sub Command1_Click()
Dim response As Variant
response = Inet1.OpenURL("http://www.linuxbox.com")
Text1.Text = response
End Sub

Or, you can use the Winsock Control (which is a better way of doing it) vb-world.net has a sample on doing this in their tips area, the url is: http://www.vb-world.net/tips/tip52.html, I hope this helps.

Ryan

Lloyd
Jul 7th, 1999, 09:04 PM
Thanks, I appreciate it!!!

Lloyd