Results 1 to 2 of 2

Thread: Modify Internet Explorer Text using VB6 works for IE7

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Modify Internet Explorer Text using VB6 works for IE7

    just because many people ask how to do this so i decided to write this

    go to project > references and tick microsoft internet controls

    now type in this code

    vb Code:
    1. Public WithEvents IE As InternetExplorer
    2. Private Sub Form_Load()
    3.  
    4. Set IE = New InternetExplorer
    5. IE.Visible = True
    6. IE.Navigate "http://en.wikipedia.org/wiki/Visual_Basic_6"
    7. End Sub
    8.  
    9. Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    10. IE.Document.getElementById("siteSub").innerHTML = "<b>Modifed with visual basic 6</b>"
    11. End Sub

    run the code and see what happens.

    Note that u need some basic html/javascript knowledge to understand the code, which i wont say anymore here.

    Feel free to ask me any questions.
    Last edited by Hack; Mar 3rd, 2007 at 06:52 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Modify Internet Explorer Text using VB6 works for IE7

    Moved To the CodeBank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width