Jimmy_A
asked on
Using WebBrowser Control: Getting list of links
Hi,
Basically, I have a form with a webbrowser on it. When a user presses a button, the webbrowser navigates to a website, and then waits until it is loaded. Once it has loaded, I want the program to find all links on the page starting with "http://www.whatever.com/about.php?site=". Next, I want it to put them into an array along with the numbers in the querystring (after "?site="). Then, I want it to count the number of things in the array :-).
Is this possible? I would really appreciate it if someone could help me out.
Thanks a lot!
Basically, I have a form with a webbrowser on it. When a user presses a button, the webbrowser navigates to a website, and then waits until it is loaded. Once it has loaded, I want the program to find all links on the page starting with "http://www.whatever.com/about.php?site=". Next, I want it to put them into an array along with the numbers in the querystring (after "?site="). Then, I want it to count the number of things in the array :-).
Is this possible? I would really appreciate it if someone could help me out.
Thanks a lot!
Yup, its possible..whats the address of the site?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thank you! And for anyone else who stumbled across this question... I just noticed that the plus sign got deleted when I posted. This line:
ReDim links(UBound(links) 1)
Should be
ReDim links(UBound(links) + 1)
ReDim links(UBound(links) 1)
Should be
ReDim links(UBound(links) + 1)