Hi all.
I am currently writing an application that uses the WebBrowser control to perform operations on web pages.Unfortunately I stumbled upon a very annoying problem, sometimes an Internet explorer script error window pops up and stops all execution until you click the OK button.I’ve searched the web for hours and the same answer came up:it’s easy (so easy, yeah…) just do this:
WebBrowser.Silent = true;the problem is that WebBrowser does not have a property named silent!!!!!! Maybe it did, but no more! if you don’t believe me take a a look at the MSDN.What you should do is use (which I have missed when i looked in the MSDN… )
WebBrowser.ScriptErrorsSuppressed = true;
which does exists…
Hope this helps some frustrated people (like me).
Happy holidays
Amit
We pay for user submitted tutorials and articles that we publish. Anyone can send in a contribution
Learn More
Hoq Said on Apr 28, 2008 :
Wanted to thank you for this post - I’m not sure when “Silent” went away, but it was driving me nucking futs!
Zeonz Said on May 15, 2008 :
I use the WebBrowser.ScriptErrorsSuppressed = true;
give me other debugging error … anyway to cancel the debugging error too?
uncleboob Said on Sep 15, 2008 :
I like to have an answer too. Thanks in advance.
Amit Said on Sep 16, 2008 :
@ uncleboob
What error are you getting?
Mr Scriptoid Said on Nov 6, 2008 :
Class effort thanks!!
Boer Said on Mar 4, 2009 :
ScriptErrorsSuppressed id now missing(((