Results 1 to 4 of 4

Thread: ExecWB

  1. #1

    Thread Starter
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You can use the Navigate2 Method to Open a Copy of the Source Code in Notepad..
    Code:
    WebBrowser1.Navigate2 "view-source:" & WebBrowser1.LocationURL
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Posts
    101

    Post

    Aaron, thanks for your reply! That's exactly what I needed, a way to get to the source code.

    But I have one more question, "HOW DID YOU KNOW!" I've been trying to figure this out for days, searching on the Web and going through MSDN's help. I didn't see the code that you provided anywhere. Please, let me know the "source" of your "code!"

    Thanks,

    Chris

  3. #3

    Thread Starter
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    view-source: is a Protocol like Http: and MailTo:, which just opens the URL in the Default HTML Editor, for most people Notepad.

    Checkout MSDN Online

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  4. #4
    Lively Member
    Join Date
    Oct 1999
    Posts
    101

    Post

    In conjunction with the Web Browser Control, can this method be used to access the source code of a URL? I know that it can be used to print a web page, but I need to get to the HTML document.

    Any suggestions or references to additional information would be appreciated.

    Thanks.

    Chris

    [This message has been edited by ChrisJackson (edited 11-30-1999).]

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