Security Level for WebBrowser control in C#

Posted by jaywon on Stack Overflow See other posts from Stack Overflow or by jaywon
Published on 2010-04-05T07:41:17Z Indexed on 2010/04/05 7:43 UTC
Read the original article Hit count: 796

Filed under:
|
|
|

I am trying to migrate an .hta application to a C# executable. Of course, since it's an .hta the code is all HTML and Jscript, with calls to local ActiveX objects.

I created a C# executable project and am just using the WebBrowser control to display the HTML content. Simply renamed the .hta to an .html and took out the HTA declarations.

Everything works great, except that when I make calls to the ActiveX objects, I get a security popup warning of running an ActiveX control on the page.

I understand why this is happening since the WebBrowser control is essentially IE and uses the Internet Options security settings, but is there any way to get the WebBrowser control to bypass security popups, or a way to register the executable or DLLs as being trusted without having to change settings in Internet Options? Even a way to do on a deployment package would work as well.

© Stack Overflow or respective owner

Related posts about webbrowser-control

Related posts about c#