Solved

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

Posted on 2010-09-01
3
348 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 350 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 150 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now