Detect events on powerpoint shapes from C #

Is it possible to detect events that occur in the form of a powerpoint, like, say, an arrow ???

So far, I have found that the only options selected are with substitution, beforerightclick and beforedoubleclick, but cannot find a way to detect others like mouseover, resizeend or positionchanged.

I managed to detect the click event on the Forms.CommandButton.1 ole object, but it only works in ppt view mode and not in ppt design mode.

My main goal is to embed winform or wincontrol in the ppt slide (not only show it on top of the slide, but also insert it into the slide so that it can be viewed in the index of the slide, and the user can play with it, like with any other form. For example, a man is bold, uppercase, color changing colors, etc.), but I can not find the documentation, and the one I found does not work as expected:

This question is about smartart, but there seem to be no events
This question is about using the Net control as an OleObject, but in my case it causes the error "Error while calling COM"

So, if you cannot embed Net tools in a ppt slide, at least you can detect key and mouse events in shapes.

Thank you in advance

+4
source share
1 answer

this may help you:

Detect Form Events

0
source

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


All Articles