Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WindowBeforeRightClick - PowerPoint 2007

Posted on 2009-07-12
1
Medium Priority
?
745 Views
Last Modified: 2013-12-17
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

0
Comment
Question by:craigdev
1 Comment
 
LVL 21

Accepted Solution

by:
GlennaShaw earned 2000 total points
ID: 24843620
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
The viewer will learn how to edit animations within the presentation, incorporate sound, and set everything up with timing.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question