Hi Guys,
I am having trouble extracting the data from my HtmlElementCollection. I am trying to retrieve the links from a site and have them print out onto a separate form's rich text field.
From here I would like to loop through the collection and print them out onto the other form called "Results"Code:'create an elements collection to store the links of the search results Dim resultsCollection As HtmlElementCollection resultsCollection = wbCraigsList.Document.GetElementsByTagName("a")
How do I approach extracting the data from the HtmlElementsCollection "resultsCollection" and place it into the other Form "Results" text field?Code:Results.Show() For i As Integer = 0 To resultsCollection.Count Step 1 Results.rtxtResults.Text = wbCraigsList.Document.GetElementsByTagName("a").ToString Next




Reply With Quote
