[RESOLVED] How to hide IE script errors
I am running a webbrowser control in my project. well just recently (dont know why) IE7 has been getting script errors on a lot of pages I have been going to. well if I try to go to those sites in my project I again get a popup script error asking if I want to run the page or not. I seen people with the same problem in VB6, and they were just making the script error not show up in their project, how can I do this in VB 2005?
p.s. for some reason this only happens with IE, I dont get the script errors when I run firefox. and since my webbrowser control runs with IE, I get the same script error in my project. the page still loads fine, I just have to hit the yes button EVERY time the page loads.
Re: How to hide IE script errors
I figured it out!! here it is for anyone else interested:
vb Code:
Me.WebBrowser1.ScriptErrorsSuppressed = True
This will hide any of the script error message boxes you get when your browser is running.
Re: [RESOLVED] How to hide IE script errors
You can also set that at design time so you dont have to write out a line of code to do it.
Re: [RESOLVED] How to hide IE script errors
It did not help. I have the same problem and followed your advice but no use.
Re: [RESOLVED] How to hide IE script errors
Can you provide an example URL that causes a script error where it does not work?