Search code examples
vstoadd-inpowerpoint-2010

How to disable "New From Existing" functionality of Powerpoint programatically?


I have written VSTO addin for Powerpoint 2010. I want to disable "New From Exisiting" functionality for powerpoint to achive some requirements. This option comes under : File -> New -> New From Existing

So is there any way to block or disable this functionality through code or registry settings ?


Solution

  • I have hooked CBTProc method of Windows in my plugin. In CBTProc we can capture every dialog box. So I have written code on this method by capturing call of "New from Existing Presentation" dialog box. You can get more info on CBTProc here : CBTProc