Does anyone know how to pull HTML code from a webpage using VB6?
Thanks for taking the time to read this!!
Lloyd
Printable View
Does anyone know how to pull HTML code from a webpage using VB6?
Thanks for taking the time to read this!!
Lloyd
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
Thanks, I appreciate it!!!
Lloyd