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

Anonymous
2019-01-28T08:47:36+00:00

I asked a question on Stack Overflow But there is no correct answer :(

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.

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. John Korchok 223.7K Reputation points Volunteer Moderator
    2019-01-28T15:16:50+00:00

    You are observing the normal behavior of the VB IDE in Edit mode. Double-clicking on a Control opens the editor so you can program a double-click action.

    ActiveX controls are intended to be used during Slideshow mode. Put your presentation into that mode, then double-click on the control. The control should go into content editing, if you have programmed it correctly.

    0 comments No comments
  2. Anonymous
    2019-01-29T01:31:39+00:00

    Thank you for your reply,Could you give more details, like which interface i should override(dbClick?),or some method i should invoke to stop the VB IDE dialog open.Really appreciate :)

    0 comments No comments
  3. John Korchok 223.7K Reputation points Volunteer Moderator
    2019-01-29T15:29:47+00:00

    Start Slideshow mode, then double-click on the ActiveX control. Assuming you have constructed the control correctly, the VBA IDE will not come up, instead you will be editing the content of the control. ActiveX controls are intended to be used in Slideshow mode, not Edit mode.

    Enter slideshow mode (icon circled below):

    Edit ActiveX content:

    0 comments No comments
  4. Anonymous
    2019-01-30T03:00:45+00:00

    @John Korchok

    Thank you for reply so much

    I think I didn't explain it clearly, Yes ,in SildeShow mode  the VBA IDE will not come up. What Causing users to wonder is  in Edit model, you know normal user does not understand the VBA dialog ,it's very unfriendly, and it's hard to explain why in Eidt model db-Click the ActiveX  control will show the VBA dialog. So I what to stop the VBA dialog in Edit Model, to make my soft more friendly. By the way i see another soft can do it, so I think there must be a way to  do that.

    1 person found this answer helpful.
    0 comments No comments