Grabbing text from a website to form.
Is this possible? ive had no experience with the winsock thing yet or anything, i have no idea where to start with this. Ive googled and found not really anything.
For example i wanna grab some text data that might be somewhere on www.google.com to a textbox.
Thanks
Re: Grabbing text from a website to form.
One simple way is to use the WebBrowser control.
In VB menu select, Project, Components, and add the Microsoft Internet Controls.
Add the WebBrowser control and a textbox to a form. Copy the sample code to the Gen Declare section of the form.
Code:
Option Explicit
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Text1 = WebBrowser1.Document.Body.Innertext
End Sub
Private Sub Form_Load()
WebBrowser1.Navigate "www.google.com"
End Sub