Solved

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

Posted on 2010-09-01
3
357 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 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

20 Experts available now in Live!

Get 1:1 Help Now