Webrowser get links [solved]
Code:
Dim htmlDocument As HtmlDocument = Me.WebBrowser1.Document
Dim htmlElementCollection As HtmlElementCollection = htmlDocument.Links
Dim link2 As HtmlElementCollection
link2 = WebBrowser1.Document.GetElementsByTagName("href")
For Each img As HtmlElement In link2
ListBox1.Items.Add(img.GetAttribute("href"))
Next
I want the code Gets all the Links of the Webpage and add to listbox
thanks


