Okay, in the past I've used the feature of Internet Explorer to embed a WebBrowser object into my programs.
In Visual Basic, you do this by adding the shdocvw.dll to your project components, then a WebBrowser object becomes available that you can draw onto your form and all is well. It has methods like .navigate and such, letting you essentially write your own web browser but using IE's I/O engine. Pretty easy and straightforward.
But here's a little problem...
You know how, sometimes, when you navigate to a page and there's a problem with the page's Javascript, IE will throw up an incredibly annoying modal error box saying, "There was an error processing scripts on this page. <error details> Do you want to continue running scripts on this page?"
That error box can be disabled in the Internet Explorer advanced options. No problem. I've done that. Now, the "real" IE only shows a small icon in the lower left corner showing the problem with the script. All is well.
But when I use the embedded version of shdocvw in my software, it ignores that advanced option and throws up the annoying modal error box.
Has anyone ever worked with this before, and does anyone know how to make shdocvw.dll suppress those errors when running as an embedded part of another app?