Click here to Skip to main content
14,335,524 members
Rate this:
Please Sign up or sign in to vote.
See more:
I created an VSTO add-in project and in that project I created an user control with button.
In the Add-in start event I am creating an
custom task pane and to that task pane a button was added.

In the button click event, I want to handle code to insert the user control ( created by me) to the PowerPoint active slide.

Please help me on this.

Thank you.
Updated 30-Nov-14 16:44pm
Maciej Los 28-Nov-14 11:22am
What have you tried? Where are you stuck?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Here is a set of PowerPoint (PP) events: Application Events[^]
You can use one of that:
Public event    SlideShowBegin  'Occurs when you start a slide show. (Inherited from EApplication_Event.)
Public event    SlideShowEnd    'Occurs after a slide show ends, immediately after the last SlideShowNextSlide event occurs. (Inherited from EApplication_Event.)
Public event    SlideShowNextBuild  'Occurs upon mouse-click or timing animation, but before the animated object becomes visible. (Inherited from EApplication_Event.)
Public event    SlideShowNextClick  'Occurs on the next click of the slide. (Inherited from EApplication_Event.)
Public event    SlideShowNextSlide  'Occurs immediately before the transition to the next slide. For the first slide, occurs immediately after the SlideShowBegin event. (Inherited from EApplication_Event.)
Public event    SlideShowOnNext     'Occurs when the user clicks Next to move within the current slide. (Inherited from EApplication_Event.)
Public event    SlideShowOnPrevious     'Occurs when the user clicks Previous to move within the current slide. (Inherited from EApplication_Event.)
Member 11258725 30-Nov-14 22:39pm
Hi Maciej Los,
Thank you for your reply. I need code to add ActiveX control/Custom control to the PowerPoint slide.

Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100