|
-
Dec 13th, 2009, 09:27 PM
#1
Thread Starter
Lively Member
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
-
Dec 14th, 2009, 02:29 AM
#2
Addicted Member
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
-
Dec 14th, 2009, 02:13 PM
#3
Thread Starter
Lively Member
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?
-
Dec 15th, 2009, 03:23 PM
#4
Thread Starter
Lively Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|