HtmlElementErrorEventArgs::Handled Property
.NET Framework (current version)
Gets or sets whether this error has been handled by the application hosting the document.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Booleantrue if the event has been handled; otherwise, false. The default is false.
Set this property to true if you wish to display your own custom error message to the user, or suppress the error entirely.
The following code example demonstrates how to suppress a script error and display your own custom dialog box. This code example requires that your application host a WebBrowser control named webBrowser1.
.NET Framework
Available since 2.0
Available since 2.0
Show: