Link to home
Start Free TrialLog in
Avatar of craigdev
craigdev

asked on

WindowBeforeRightClick - PowerPoint 2007

http://msdn.microsoft.com/en-us/library/bb231082.aspx  -- Application.WindowBeforeRightClick Event

In this article it's claimed you can intercept the WindowBeforeRightClick event for Powerpoint 2007. I think this article is full of lies.

The worst lie is this one "[WindowBeforeRightClick] Occurs when you right-click a shape, a slide, a notes page, or some text. This event is triggered by the MouseUp event"

I have found that the event only fires when you click in the empty area surrounding the powerpoint slide. Can anybody shed any light on this malicious and misleading article?

private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            Application.WindowBeforeRightClick += new Microsoft.Office.Interop.PowerPoint.EApplication_WindowBeforeRightClickEventHandler(Application_WindowBeforeRightClick);
 
            
        }
 
        void Application_WindowBeforeRightClick(Microsoft.Office.Interop.PowerPoint.Selection Sel, ref bool Cancel)
        {
            MessageBox.Show("Canceling before right click...");
            Cancel = true;
        }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of GlennaShaw
GlennaShaw

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial