Results 1 to 5 of 5

Thread: [RESOLVED] How to hide IE script errors

  1. #1

    Thread Starter
    Lively Member turbotec's Avatar
    Join Date
    Aug 2007
    Posts
    102

    Resolved [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.

  2. #2

    Thread Starter
    Lively Member turbotec's Avatar
    Join Date
    Aug 2007
    Posts
    102

    Re: How to hide IE script errors

    I figured it out!! here it is for anyone else interested:

    vb Code:
    1. Me.WebBrowser1.ScriptErrorsSuppressed = True

    This will hide any of the script error message boxes you get when your browser is running.

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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.

  4. #4
    Addicted Member
    Join Date
    Nov 2002
    Location
    Viet Nam
    Posts
    142

    Re: [RESOLVED] How to hide IE script errors

    It did not help. I have the same problem and followed your advice but no use.

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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
  •  



Click Here to Expand Forum to Full Width