How to disable the Visual Basic dialog when double-clicking an ActiveX control

I developed an ActiveX user control: ax_love.

When I paste it into ppt inside and double-click this control, a VisualBasic popup will appear, this is unacceptable. I hope the double-click action will call my own function.

ps: I am using atl / com in vs2017.

enter image description here

+5
source share
1 answer

In development mode, clicking on an ActiveX control will open a VB window - this is expected. In presentation mode, clicking on an ActiveX control will call your function.
If you want the version of this mode to open only in presentation mode (therefore, users will not be moved to the VB page), save the file as a PowerPoint Macro-Enabled Show (.ppsm). Then it always opens in presentation mode (save a copy in .pptm format for editing, but do not provide it to your users).

+5
source

Source: https://habr.com/ru/post/1275279/


All Articles