Vb.Net WebBrowser html links to string vector
Hi.
I have a vb.net code that get the links from a webpage.
What I want to do is to put those links and images in a string vector.
How can I do that?
I can put them in a combobox but first i would like to put them by order in a vector.
The code is this under documentcomplete event:
Code:
If e.Url.Host = "www.google.com" Then ''''example''''
If combobox1.Items.Count() = 0 Then
For Each MyLink As mshtml.HTMLAnchorElement In GetCurrentWebDoc.links
If MyLink.href.Contains("alerta") Or MyLink.href.Contains("comprar") Then
If MyLink.innerText = "Indisponível" Or MyLink.innerText = "" Then
Else
'I WANT TO PUT HERE THE VECTOR BEFORE THE COMBOBOX
combobox1.Items.Add(MyLink.innerText)
End If
End If
Next
End If
Help please.
Thanks in advance,
Voodoo_X