Instead of doing that, have a look at the
HTMLAgility pack[
^] - it's available via NuGet in VS - if you are doing anything with web scraping it makes your life a whole load easier:
HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = web.Load(url);
string title = doc.DocumentNode.SelectSingleNode("//title").InnerText;
HtmlNodeCollection h2Nodes = doc.DocumentNode.SelectNodes("//h2]");
HtmlNodeCollection divNodes = doc.DocumentNode.SelectNodes("//div[@class='pre-action-link']);
Or if you must use VB:
Dim web As HtmlWeb = New HtmlWeb()
Dim doc As HtmlAgilityPack.HtmlDocument = web.Load(url)
Dim title As String = doc.DocumentNode.SelectSingleNode("//title").InnerText
Dim h2Nodes As HtmlNodeCollection = doc.DocumentNode.SelectNodes("//h2]")
Dim divNodes As HtmlNodeCollection = doc.DocumentNode.SelectNodes("//div[@class='pre-action-link']);")
Have a look at the documentation - it can really make your life eaiser!