问题描述
我用C#创建了一个com组件,并使用Regasm注册了该组件。我现在可以通过使用ActiveXObject(...)在IE中使用它。但是,这仅在我更改IE安全设置并允许运行未签名的Activex控件时才起作用,在这种情况下,我会收到消息:
I created a com component in C#, which I registered by using Regasm. I am able now to use this in IE by using ActiveXObject(...). However this only works when I change my IE security settings and allow to run unsigned activex controls, in which case I get the message:
我一直希望IE在没有提示的情况下允许这种交互。有人知道怎么做吗?
I always want IE to allow this interaction without the prompt. Does anybody know how this can be done?
谢谢
推荐答案
您的ActiveX控件必须实现IObjectSafety接口,以使IE停止显示不安全?。提示。几年前,我对VB6 ActiveX控件进行了此操作。在显示了如何在.Net中进行操作。
Your ActiveX control must implement the IObjectSafety interface in order for IE to stop showing the "unsafe?" prompt. I did this several years ago for a VB6 ActiveX control. In the 5th step of This page is shown how to do it in .Net.
这篇关于此页面上的Activex控件可能不安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!