Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

enter image description here

like image 419
Aliceljm Avatar asked Feb 10 '18 02:02

Aliceljm


1 Answers

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).

like image 175
tysonwright Avatar answered Oct 22 '22 08:10

tysonwright