简体   繁体   中英

How to disable the Visual Basic dialog when double click the ActiveX Control

I developed a custom ActiveX control: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. I hope the double click action will trigger my own function.

ps:I use atl/com in vs2017.

在此处输入图片说明

In Design mode, clicking on an ActiveX control will open up the VB window - this is as-expected. In Presentation mode, clicking on the ActiveX control will trigger your function.
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). Then it always opens in Presentation mode (keep a copy in .pptm format for editing, but don't give that one to your users).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM