How do I use Visual Basic to access the HTML code of a website

How do I use Visual Basic to access the HTML code of a website?
Processing a web page in a VB program isn't a problem. In VB6, you can do it by using InternetExplorer object. The following example will give you an idea about how to get started
Who is Participating?
Hello siyamala,

Try the following link

I has something about the internet explorer object.
ong-hhConnect With a Mentor Commented:
Private Sub Form_Load()
    WebBrowser1.Navigate ("")

End Sub

I had used the WebBrowser in VB6 to script the HTML code. Refer to the code below and the screen

Private Sub WebBrowser1_DownloadComplete()

    'you must add the "Microsoft HTML Object Library"!!!!!!!!!

    Dim HTMLdoc As New MSHTML.HTMLDocument


    On Error Resume Next

        Set HTMLdoc = WebBrowser1.Document
        Label1.Caption = HTMLdoc.documentElement.innerHTML
End Sub
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.