Blocking dialogs in .NET WebBrowser control

前端 未结 12 1312
执笔经年
执笔经年 2020-11-27 17:04

I have a .NET 2.0 WebBrowser control used to navigate some pages with no user interaction (don\'t ask...long story). Because of the user-less nature of thi

12条回答
  •  囚心锁ツ
    2020-11-27 17:07

    webBrowser1.ScriptErrorsSuppressed = true;
    

    Just add that to your entry level function. After alot of research is when I came across this method, and touch wood till now its worked. Cheers!!

提交回复
热议问题