Results 1 to 4 of 4

Thread: [RESOLVED] Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2012
    Posts
    51

    Resolved [RESOLVED] Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons

    Hello everyone.

    I have an annoying problem with website's annoying script errors popping every few seconds from WebBrowser1 in my program. Is there any way to automatically close them/ignore them so they will not interrupt WebBrowser1's tasks?

    Here's a screenshot of the following error:
    Name:  error.PNG
Views: 173
Size:  22.2 KB

    Thanks for Your help, I'll give reputation for help :]

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons

    On form load or whereever, have you tried setting,..
    Code:
    WebBrowser1.ScriptErrorsSuppressed = True
    WebBrowser.ScriptErrorsSuppressed Property
    https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

  3. #3
    Member
    Join Date
    Jan 2014
    Posts
    62

    Re: Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons

    Quote Originally Posted by n1000 View Post
    Hello everyone.

    I have an annoying problem with website's annoying script errors popping every few seconds from WebBrowser1 in my program. Is there any way to automatically close them/ignore them so they will not interrupt WebBrowser1's tasks?

    Here's a screenshot of the following error:
    Name:  error.PNG
Views: 173
Size:  22.2 KB

    Thanks for Your help, I'll give reputation for help :]
    Select webbrowser control and in properties, set scripterrorssuppressed = true.

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2012
    Posts
    51

    Re: Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons

    Thanks guys

Tags for this Thread

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