Dmitry Kostochko

Video HowTo: Intercept clicking on Outlook buttons (VSTO)

There is an easy solution: you can use the ADXRibbonCommand component. ┬áBasically there is only one thing that may present some difficulties to you – knowing the ID of the standard control. However, you can visit Microsoft website to find the list of all available control IDs (please see the link below). Everything else is as easy as pie with Add-in Express.

In this Video HowTo we'll intercept such Outlook buttons as Reply, Reply All and Forward and to give the end-user the possibility to cancel the default action of these Ribbon buttons.

See how you can do this:

This sample video was captured in Visual Studio 2008 (VB.NET) with Add-in Express 2009 for Office and VSTO.

You may also be interested in:

2007 Office System Document: Lists of Control IDs

2 Comments

  • https://secure.gravatar.com/avatar/b14ecfa92f186ddff48872dd1c318b72?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Richard says:

    Is there an an similar possibility to get this for Outlook 2007 Explorer view since there are no ribbons there?

    greets richard

  • https://secure.gravatar.com/avatar/ab4ec2858cfdf1e44dadf8c50fae314d?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Dmitry Kostochko (Add-in Express Team) says:

    Hi Richard,

    Yes, it is possible. I would suggest using the ADXBuiltInControl component, which is purposed to intercept clicking on command bar buttons.

Post a comment

Have any questions? Ask us right now!