Webbrowser Question.......
Ok, so im almost done with a program i am making including a webbrowser. One thing that annoys me about the webbrowser control is the "Error running scripts on page, do you want to continue?" Pop-up dialog. How can i disable this or automatically make it submit the "Yes" Option?
Re: Webbrowser Question.......
i think that is a setting for IE. Tools>options>Advanced tab in the browser settings.
not sure how youwould programatically change it though.
Re: Webbrowser Question.......
Yeah, thats what i need, to change it globally for the computer, or just in the program.
Re: Webbrowser Question.......
The setting is probably kept in the registry. Try finding it under:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
or
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer
Re: Webbrowser Question.......
Ok, im sorry for being hard, but I dont even know how to manipulate registry keys in Visual Basic, Ive never had the need for it.
Re: Webbrowser Question.......
open the registry editor (Run -> Regedit), then look through those keys to find what you need. After that you can use the search (http://www.vbforums.com/search.php?) to find what you need on manipulating the registry (it has been covered many times, there is a module available here which gives you all the functions you need, you just call them).
Re: Webbrowser Question.......
Ok thanks, but i have no idea what im looking for....
Re: Webbrowser Question.......
Try looking here, these should be the settings for script error reporting:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\BROWSE\SCRIPT_ERROR_CACHE
Re: Webbrowser Question.......
Nope, no advanced options in the registry for IE....
Re: Webbrowser Question.......
Set your WebBrowser's .Silent property to True and .RegisterAsBrowser to False.
Re: Webbrowser Question.......
Thank you! Thats very simple.