?
Solved

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

Posted on 2010-09-01
3
Medium Priority
?
406 Views
Last Modified: 2013-11-27
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
0
Comment
Question by:Siyamala
3 Comments
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 1400 total points
ID: 33583751
0
 
LVL 15

Expert Comment

by:rajeeshmca
ID: 33583753
Hello siyamala,

Try the following link

http://visualbasic.about.com/od/quicktips/qt/proc_html2.htm

I has something about the internet explorer object.
0
 
LVL 4

Assisted Solution

by:ong-hh
ong-hh earned 600 total points
ID: 33583997
Private Sub Form_Load()
    WebBrowser1.Navigate ("http://www.google.com")
   

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
1.jpg
2.jpg
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question