I am using VS 2019 and developing a winform applicaion using VB.Net. I want to get the elements of a webpage into a string so that I can extract the required value from that string.
The following are my Imports - Imports System.IO Imports System.Net
I had put a button on a form for initiating the process. As I was debugging the function, when it came to the line "Dim response As HttpWebResponse = request.GetResponse()" it just loads the form back and does not proceed to the next line.
May I seek help on this? Thanks in advance.
I went through Download contents of webpage with VB and tried to implement the answer given.
I also prefixed the request and response with "Net." as mentioned there. But still the results are same.