c# - Using custom settings for WebBrowser Control -
c# - Using custom settings for WebBrowser Control -
i'm trying build c# application uses webbrowser command for, obviouly, webbrowsing. enhance security of system, i'd set own security settings. these 2 of settings set through software:
disable download file-extensions (*.exe) disable cookiesi found, webbrowser class straight uses settings net explorer. there way utilize own settings specific webbrower or overide these settings (maybe temporarely)?
i think question may similar this: overriding ie settings when embedding webbrowser command using ie9 (but i'm not sure... :)
edit: if alter cookie-settings net explorer, used webbrowser-control, right? possible alter these global settings via c#? maybe easy solution problem...
unfortunately, doesn't can disable cookies, though can clear them; however, when so, clearing cookies all ie instances on pc (for particular account). here stackoverflow more detail.
as far controlling files may downloaded, need utilize form of fileiopermission class. here stackoverflow expanding on illustration in answer.
last, explore msdn documentation webbrowser command class, , might closer need.
good luck!
c# windows com internet-explorer-9 webbrowser-control
Comments
Post a Comment