You have a Web Browser on your application and a listbox and a button(i didn't mention about webbrowser controls) so when you're on a website or a lets say a web page you can click on the button and the all links of the website will be listed on the listbox
create a new project and add a listbox and a button and a webbrowser (add webbrowser controls)
now double click your button and add this code
now just debug
preview :
create a new project and add a listbox and a button and a webbrowser (add webbrowser controls)
now double click your button and add this code
'Author : Mohamed Shimran
'Blog : http://www.ultimateprogrammingtutorials.blogspot.com
Dim links As HtmlElementCollection = WebBrowser1.Document.Links
For Each link As HtmlElement In links
ListBox1.Items.Add(link.GetAttribute("href"))
Next
now just debug
preview :
2 comments
it is vary short and not sufficient. please provide more codes.
ReplyBeautiful!
ReplyHow to scrape table from web?
Thanks
Post a Comment
Note: Only a member of this blog may post a comment.