Results 1 to 2 of 2

Thread: Web Browser control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    London
    Posts
    255
    Hi everybody,

    Having a web browser control and a HTML page being loaded in a text box, how can I find out or check whether I am getting the right information and not an "error message" or "the page cannot be displayed", etc.

    Please help

    Dinis

  2. #2
    Guest
    To retrieve HTML Pages source:

    Code:
        Text1.Text = WebBrowser1.Document.documentElement.innerHTML

    And you can use the Instr function to check whether you get those errors.


    Code:
    If Instr(1, Text1.text, "the page cannot be displayed") Then
        Msgbox "Error"
    End If

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