Results 1 to 4 of 4

Thread: error in page for webbrowser control

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2007
    Posts
    63

    Question error in page for webbrowser control

    Hello,

    I am navigating to a web page with my webbrowser control

    Dim myWBP As New WebBrowser

    myWBP.Navigate(strThePageToOpen)

    and this works on most pages. Now I'm going to a page that I guess there are errors in the page and I get a box asking me if I want to debut in IE's built in script debugger or something to that effect.

    Is there any way to have the system ignore this message and continue to load the page as normal as I just click cancel it continues to load the page with no problem


    Thanks again for all your assistance.

    Mythos

  2. #2
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: error in page for webbrowser control

    you can try this, use it before you load the page:

    Code:
     myWBP.Silent = True
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2007
    Posts
    63

    Re: error in page for webbrowser control

    It says silent is not a member of the webbrowser.

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2007
    Posts
    63

    Re: error in page for webbrowser control

    Okay found it

    myWBP.ScriptErrorsSuppressed = True

    This works great thank you so much.

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