CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2002
    Location
    Makati City, Philippines
    Posts
    1,054

    [RESOLVED] Catching a browser error from VB/VBA

    Hi.

    I have a WebBrowser inserted in a form. When the appropriate page is displayed, that form fetch several information and do some processing. It then, move to the next page and do another process. The cycle goes for about 500 to 800 times until the job is done.

    I have been using this program for more than a year – until a few days ago, when those who handle the web pages did some changes.

    Unfortunately, there is an error in the scripting that interrupts my program from proceeding to the next page. I tried to capture the error and just ignore them. It seems I can’t do it in VB. Or maybe I just don’t know how to catch it. Please see attached screenshots of the error message.

    What I am thinking is to turn off this “error check” in the browser settings but I don’t know how to do it – I am not familiar with browser settings or scripting.

    Any suggestions please?

    Thanks in advanced
    Attached Images Attached Images
    Marketing our skills - please participate in the survey and share your insights
    -

  2. #2
    Join Date
    Apr 2003
    Posts
    1,755

    Re: Catching a browser error from VB/VBA

    I'm not sure if this is a good solution but you can remove the warning message with 2 steps.

    1. turn off the script debugging by checking the "Disable script debugging (IE) and Disable script debugging (Others)". These settings are in the "Advanced" tab of the IE properties.

    2. Add "<WebBrowser>.Silent = true" to your code before loading the page.

  3. #3
    Join Date
    Feb 2002
    Location
    Makati City, Philippines
    Posts
    1,054

    Resolved: Catching a browser error from VB/VBA

    Greaaaaaaatttttttt!!!!

    The #2 is the magic solution. It's now working smoothly.

    Maraming salamat po.
    Marketing our skills - please participate in the survey and share your insights
    -

  4. #4
    Join Date
    Apr 2003
    Posts
    1,755

    Re: Catching a browser error from VB/VBA

    Walang anuman kabayan

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

Featured