问题
I am using webbrowser-control
to display multiple webpages in a C# form.
Several webpages are giving me 100+ errors like:
First-chance exception Microsoft C++ exception:
Js::JavascriptExceptionObject at memory location xxx
How can I catch or suppress these exceptions? There are so many my program is crashing.
回答1:
You can suppress JavaScript errors by setting the WebBrowser1.ScriptErrorsSuppressed =True
来源:https://stackoverflow.com/questions/24806185/plenty-exceptions-when-using-webbrowser-control-c-sharp