How To Hide Internet Explorer Script Errors In VB.NET & C#

internet explorer
I think most of the people hate web browser control script errors in vb.net and c# . if you don't know what i mean , look at the picture below i hope you know it.
Internet error script
Okay i will straightly come to the main point ! you just need to add this line of code in form_load 
   Me.WebBrowser1.ScriptErrorsSuppressed = True
'change WebBrowser1 to your webbrowser name' , here is the code for c#
            this.webBrowser1.ScriptErrorsSuppressed = true;
that's a snippet , thanks.

5 comments

Wow Its Nice ! Thanks Man ! I want more advanced Tutorials.

Reply

Thank you!! I'm making a custom browser for my business computers. one part to our system pops up a window, your code worked like a charm! Thank you, Thank you!!

Reply

This only suppresses a very small number of errors. Many error popups will still appear.
Does anyone know how to suppress 100% of the errors?

Reply

Post a Comment

Note: Only a member of this blog may post a comment.