Last post Jun 23, 2008 02:29 PM by greekcandyman
Jun 18, 2008 09:03 PM|greekcandyman|LINK
I'm having some trouble with the following problem.
I have a WebBrowser that is set to navigate to "asp.net"
Then I have a button, that when pressed, is supposed to collect all the links from the page and store them to a ListBox for later use.
The only problem is that I can't get the exact url from the WebBrowser.
And I'm also have trouble getting the WebBrowser to navigate using text from a ListBox...
Can anyone help me out? Thanks..
Here is my code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim qq As Integer
If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
For qq = 0 To WebBrowser1.Document.Links.Count - 1
But the only thing listed in the listbox when the code finishes running is "System.Windows.Forms.HtmlElement" and not the actual link itself!
So, what now? Thanks..
webbrowser extract collect links listbox button
Jun 23, 2008 10:04 AM|DkUltra|LINK
A person could try
Hope this helps
Jun 23, 2008 02:29 PM|greekcandyman|LINK
Wow that was simple.. Thanks!