System.Windows.Forms.WebBrowser.ScriptErrorsSuppressed Property

Gets or sets a value indicating whether the System.Windows.Forms.WebBrowser displays dialog boxes such as script error messages.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool ScriptErrorsSuppressed { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Set this property to false to debug Web pages that you display in the System.Windows.Forms.WebBrowser control. This is useful when you use the control to add Web-based controls and scripting code to your application. It is less useful when you use the control as a generic browser. When you have finished debugging your application, set this property to true to suppress script errors.

Note:

When WebBrowser.ScriptErrorsSuppressed is set to true, the System.Windows.Forms.WebBrowser control hides all its dialog boxes that originate from the underlying ActiveX control, not just script errors. 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 WebBrowser.ScriptErrorsSuppressed to false and suppress script errors in a handler for the HtmlWindow.Error event. For more information, see the code example in this topic.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0