• Welcome to Theos PowerBasic Museum 2017.

WebBrowser Control Error Suppression?

Started by Paul Emerson, July 04, 2010, 07:47:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paul Emerson

Hi,

I'm using the WebBrowser control but I cant work out how to suppress script errors, "An error has occured in the script on this page" etc.
I think I need to catch %OLECMDID_SHOWSCRIPTERROR somehow and return %TRUE to say I've handled it but I'm not exactly sure how to achieve this.
Any ideas?

PE

José Roca

 
Try setting the Silent property of the IWebBrowser2 interface to true. You also have to turn off the Scripting Debugger in Internet Explorer. To turn off the Scripting Debugger in Internet Explorer, on the Tools menu, click Internet Options. On the Advanced tab, select the Disable script debugging check box, and then click OK.

Paul Emerson

Thank you very much, that worked perfectly!