1 Attachment(s)
[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:
Attachment 136587
Thanks for Your help, I'll give reputation for help :]
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
Re: Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons
Quote:
Originally Posted by
n1000
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:
Attachment 136587
Thanks for Your help, I'll give reputation for help :]
Select webbrowser control and in properties, set scripterrorssuppressed = true.
Re: Ignore/close WebBrowser1's script errors without manually clicking Yes/No buttons