C# activex开发中 axwebbrowser控件及 IE浏览器设置
<object type='application/x-vlc-plugin' id='vlc' events='True' codebase='../cab/axvlc.cab'
classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' width="100%" height="100%">
<param name='mrl' value='' />
<param name='volume' value='50' />
<param name='autoplay' value='true' />
<param name='loop' value='true' />
<param name='fullscreen' value='false' />
</object>
如上,设置了vlc的codebase,打开网页时提示被阻止
需要修改ie浏览器的安全设置
IE要设置成 internet选项-安全-自定义级别-activex控件和插件下面项全部设为 启用 或 提示
![](https://img2018.cnblogs.com/blog/306509/201809/306509-20180920175609569-524600341.png)
vs窗体内置 axwebbrowser控件时调用无法显示activex控件
需要Vs编译时设置X86
![](https://img2018.cnblogs.com/blog/306509/201809/306509-20180920175559844-877989605.png)
https://social.msdn.microsoft.com/Forums/windowsapps/zh-cn/5ccd6d0d-4258-48d4-bf75-c2fc49bf907c/c2001365292axwebbrowser25511202142057030340316162613127983352722212?forum=visualcshartzhchs