Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable JavaScript error in WebBrowser control

I am developing a windows application with a WebBrowser control that navigates to a sharepoint site.
My problem is that i am getting JavaScript error.

How can i disable the JavaScript error? I don't want them to pop up.

like image 506
Gaby Avatar asked Mar 19 '10 10:03

Gaby


People also ask

How do I stop a script error in WebBrowser control?

Occasionally you might need to suppress script errors while displaying dialog boxes such as those used for browser security settings and user login. In this case, set ScriptErrorsSuppressed to false and suppress script errors in a handler for the HtmlWindow.

What is WebBrowser control?

The WebBrowser control provides a managed wrapper for the WebBrowser ActiveX control. The managed wrapper lets you display Web pages in your Windows Forms client applications.


1 Answers

webBrowser.ScriptErrorsSuppressed = true; 
like image 164
Matt Jacobsen Avatar answered Oct 20 '22 00:10

Matt Jacobsen