Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/322.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Visual C-消除使用WebBrowser时的“脚本错误”_C#_Visual Studio_Webbrowser Control - Fatal编程技术网

C# Visual C-消除使用WebBrowser时的“脚本错误”

C# Visual C-消除使用WebBrowser时的“脚本错误”,c#,visual-studio,webbrowser-control,C#,Visual Studio,Webbrowser Control,好的,我有一个叫wb的网络浏览器。我使用wb.Navigateurl将一个页面加载到wb中;当页面加载时,我得到一个框,上面写着脚本错误 这是我得到的 我怎样才能防止它出现在我的程序中?在较新的浏览器控件上不确定,但在我的脑海中,有一个名为SuppressScriptErrors或类似的选项。在执行工作之前,在代码中将其设置为true。您还必须确保在“Internet选项”下“调试网页”处于关闭状态,如果您正在获取上面的对话框,则该对话框处于关闭状态 搜索您的解决方案,而不是提出新问题。。。可

好的,我有一个叫wb的网络浏览器。我使用wb.Navigateurl将一个页面加载到wb中;当页面加载时,我得到一个框,上面写着脚本错误

这是我得到的


我怎样才能防止它出现在我的程序中?

在较新的浏览器控件上不确定,但在我的脑海中,有一个名为SuppressScriptErrors或类似的选项。在执行工作之前,在代码中将其设置为true。您还必须确保在“Internet选项”下“调试网页”处于关闭状态,如果您正在获取上面的对话框,则该对话框处于关闭状态


搜索您的解决方案,而不是提出新问题。。。可能重复的
wb.ScriptErrorsSuppressed = true;