Ok so I have a WebBrowser called wb. And I load a page into wb using wb.Navigate("url");
When the page loads I get a box saying "Script Error".
Here is the one I get
How can I keep this from popping up in my program?
Not sure on newer browser control, but off the top of my head, there is an option called SuppressScriptErrors or something like that. Set that to true in your code before performing work. You'll also have to make sure that under Internet Options that debugging web pages is off (if you're getting the dialog above, it is off).
http://www.dev102.blogspot.com/2007/12/how-to-suppress-disable-script-errors.html
wb.ScriptErrorsSuppressed = true;