PDA

View Full Version : Solved: Where is webbrowser.ScriptErrorsSuppressed?



jrajul
02-18-2011, 12:46 PM
I need to set this property to false for a webbrowser in an access form.
I prefer the ActiveX webbrowser. But whether I use the ActiveX webbrower or the Access webbrowser, there is no "ScriptErrorsSuppressed" property.

I get the error "Object does not support property or method".

Microsoft mentions ScriptErrorsSuppressed here:

msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.scripterrorssuppressed.aspx

but I just do not see it anywhere in Access or the VB editor.

Where is it?

JP2112
02-18-2011, 01:29 PM
That property only applies to Windows form controls in .NET.

For the WebBrowser control, try setting the Silent Property to True.

jrajul
02-18-2011, 03:02 PM
Thanks JP2112.

But that did not work.

My goal is to get the form to work on a computer whose security settings block scripts.

My webBrowser refers to an website that uses scripts.

If the website is opened in Internet Explorer, an error comes up saying



"To help protect your security, Internet Explorer has blocked this website from running scripts"


and the user has an option to temporarily allow them for that page.

My access webbrowser simply ignores the scripts and displays a disabled version of the page.