[英]How to disable the Visual Basic dialog when double click the ActiveX Control
I developed a custom ActiveX control:ax_love. 我开发了一个自定义的ActiveX控件:ax_love。
When I insert it into a ppt inside and double click this control will show a pop-up VisualBasic window,this is unacceptable. 当我将其插入内部的ppt并双击时,此控件将显示一个弹出的VisualBasic窗口,这是不可接受的。 I hope the double click action will trigger my own function.
我希望双击动作能够触发我自己的功能。
ps:I use atl/com in vs2017. ps:我在vs2017中使用了atl / com。
In Design mode, clicking on an ActiveX control will open up the VB window - this is as-expected. 在设计模式下,单击ActiveX控件将打开VB窗口-这是预期的。 In Presentation mode, clicking on the ActiveX control will trigger your function.
在演示模式下,单击ActiveX控件将触发您的功能。
If you want a version of this to only open in Presentation mode (so users won't be taken to a VB page), save the file as a PowerPoint Macro-Enabled Show (.ppsm). 如果您希望仅在演示文稿模式下打开此版本(这样就不会将用户带到VB页面),请将文件另存为PowerPoint Macro-Enabled Show (.ppsm)。 Then it always opens in Presentation mode (keep a copy in .pptm format for editing, but don't give that one to your users).
然后,它将始终以“演示文稿”模式打开(保留.pptm格式的副本以进行编辑,但不要将该副本提供给用户)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.