|
-
Oct 18th, 2007, 02:21 PM
#1
Thread Starter
Lively Member
[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.
-
Nov 7th, 2007, 05:44 PM
#2
Thread Starter
Lively Member
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.
-
Nov 7th, 2007, 05:58 PM
#3
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.
-
Apr 27th, 2008, 11:02 PM
#4
Addicted Member
Re: [RESOLVED] How to hide IE script errors
It did not help. I have the same problem and followed your advice but no use.
-
Apr 28th, 2008, 12:07 AM
#5
Re: [RESOLVED] How to hide IE script errors
Can you provide an example URL that causes a script error where it does not work?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|