Question Webbrowser control suppress script error no longer working for IE10 and IE11


New member
May 20, 2014
Programming Experience
I have a webbrowser control inside a windows application. Previously I was using
"AddHandler CType(sender, WebBrowser).Document.Window.Error, AddressOf Window_Error" to suppress the script error. (Uncheck the IE disable script debugger).
The above solution works on IE 9 and below. However, my clients have upgraded some of their workstation to IE10 and IE 11 and the script error popup again.

Lots of advice to use IOLECommandTarget and I have tested out using "" but I really have no idea how to use the EXEC method to suppress the script error in VB. Can someone help?
Top Bottom