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 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.


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


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!!


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?


Post a Comment

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