Count How Many Links There Are in a Web Page - Visual Basic .NET
Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013
The easiest way to get the count of links on a web page is to navigate the web page in visual basic webbrowser control. The webbrowser control has an easy method to get the links of the navigated page.
So in order to get how many links there are in a web page, add a webbrowser control to your form. Navigate to the page desired.
Then add the following code to the count button:
TextBox1.Text = WebBrowser1.Document.Links.Count