简体   繁体   English

双击ActiveX控件时如何禁用Visual Basic对话框

[英]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.

相关问题 如何在Visual Studio 2012中为基于Win32 Dialog的应用程序启用“插入Activex控件”? - How to enable 'Insert Activex Control' in Visual Studio 2012 for a Win32 Dialog based application? 如何在MFC对话框中替换/更新ActiveX控件 - How to replace/update an ActiveX control in a MFC dialog 实例化ActiveX控件时,在Excel中导致Visual Basic运行时错误-2147319765(8002802b)的原因是什么? - What causes Visual Basic Run-time error -2147319765 (8002802b) in Excel when an ActiveX control has been instanced? 如何使用ActiveX控件在窗口/对话框中呈现HTML文件 - how to render html file in window/dialog box using activex control 如何在 C++ 中的 WebKitX ActiveX 控件中设置单击事件 - How to set click events in WebKitX ActiveX control in C++ 如何注册 ActiveX 控件? - How to register an ActiveX control? ActiveX的标准属性对话框/浏览器-控件 - Standard Property Dialog/Browser for ActiveX - Control 如何在可视对话框编辑器中将MFC控件连接到自定义控件 - How to connect an MFC control to a custom control in the visual dialog editor 如何查找ActiveX控件的界面? - How to find interfaces of an ActiveX control? 当指定的注册表值更改为Windows Mobile ActiveX控件时,如何在ATL ActiveX控件中获取事件通知 - How to get event notification in an ATL ActiveX control when a specified registry value changes for use as a windows mobile ActiveX control
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM