Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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