Dmitry Kostochko

Video HowTo: Intercept clicking on standard Office Ribbon controls (VB.NET)

The answer is very simple indeed – you can use the ADXRibbonCommand component. The main difficulty is that you need to know IDs of standard controls. You can find a list of all available control IDs on the Microsoft web-site (see the link at the end of this post). All the rest is just a cakewalk, of course if you use the Add-in Express product.

In this visual HowTo, we will show you how to intercept such Outlook Inspector buttons as Reply, Reply All and Forward. Also, we will give the end-user the ability to cancel the default action of these Ribbon buttons.

Now let’s see how this can be done:

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

You may also be interested in:

2007 Office System Document: Lists of Control IDs

Post a comment

Have any questions? Ask us right now!