Results 1 to 2 of 2

Thread: Help--View source of HTML pages

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    14

    Question

    I am new in VB and I would appreciate any help. I need to retrieve the html source page of a document loaded on the Webbrowser and display it on a Textbox or RichTextBox. More or less the same as the "View Source" command of the Internet Explorer does.

    THANKS

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    You can use the Navigate2 Method to Open a Copy of the Source Code in Notepad..


    Code:
    WebBrowser1.Navigate2 "view-source:" & WebBrowser1.LocationURL
    Mark
    -------------------

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