Getting Links off of page error
I am creating a program and have the following code to extract the URL's off of a webpage and put them in a richlistbox. This is only from one page. The problem is that I am only getting one URL into the listbox, instead of all of them off of the page.
Here is what I have so far:
Code:
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Dim str1 As String = WebBrowser1.DocumentText
RichTextBox1.Text = str1
Dim web As String = str1
Dim radar As String = web.Remove(0, web.IndexOf("/members/earn/offers/go/")).Remove(0, 1)
radar = radar.Remove(radar.IndexOf("target"))
RichTextBox1.Text = radar
Timer3.Stop()
End Sub
Any help would be great
Re: Getting Links off of page error
Try your code inside the
Code:
private sub webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
'Here
End sub
More tips here : Link
Re: Getting Links off of page error
The thing is I need to have it under a timer. Since there is more code to happen before and after this, i need it to go in a row.
Any one else can help?
Re: Getting Links off of page error
Can some one please help me, I can't continue with my program till I figure out the problem.