Show and Hide Context Menu Items in Outlook 2010 (Norm Estabrook)

If you have written code that shows and hides context menu items in Outlook 2007, that code might not behave well in Outlook 2010. That is exactly what happened to this individual who recently posted to the VSTO forum. The command bar object model (which most folks use to muck around with menus) has been… Read more

Activate Ribbon Tabs in Office 2010 Solutions (Norm Estabrook)

Office 2010 now lets you activate tabs on the Ribbon. I gave this a try in a Outlook 2010 project and was very pleased with how easy it was to accomplish. Here are a couple of back-of-the-napkin examples that I chicken scratched over lunch. From the Ribbon Load event This code activates (puts in focus)… Read more

Add a Custom Task Pane to Project 2010 (Norm Estabrook)

Good news! Project 2010 supports custom task panes! Bad News! Getting one to appear in a Project 2010 is not so obvious. Good News! It’s a lot easier than I make it sound. In this post, I’ll show you how to add a custom task pane to Project 2010 by using a Project 2010 or… Read more

Migrating an Outlook Solution to .NET Framework 4 in Visual Studio 2010 (Norm Estabrook)

Visual Studio can help migrate your Outlook solutions from .NET Framework 3.5 to the .NET Framework 4. However, you still have to do a few things manually to make it all work.  Beth Massi converts an Outlook Solution that targets the .NET Framework 3.5 to an Outlook Solution that targets the .NET Framework 4 client… Read more

Making a Custom Group Appear in the Message Tab of a Mail Item (Norm Estabrook)

You can add a custom group to the Message tab of an Outlook mail item.  For example, here is a custom group named "MyCoolGroup" that I added to the message tab of a new message: Outlook lets you open a message in the following two modes: Compose (you are drafting a new message). Read (you… Read more

Do Your Outlook UI Elements Need Counseling? – Get your Form Regions, Ribbons, and Task Panes Talking to Each Other Again (Norm Estabrook)

So you want to open a task pane by using a button on the Ribbon. You also want a form region that appears in an e-mail item to detect the state of a control on a custom task pane so that you can add or remove an option that appears in a Ribbon menu right?… Read more

Here is a Way to Get the ID of a Built-in Outlook Command Bar Menu (Norm Estabrook)

Recently, a forum poster asked us how he could add a submenu item to a built-in menu item in Outlook.  Note that these are not controls that appear on the Ribbon of an Outlook item, but rather the menus that drop down from the top of the Outlook Explorer such as the View menu and… Read more

Clearing Off Custom Menu Items in Word (Norm Estabrook)

Last month I posted this article that described how to prevent your add-in from creating duplicate menu items in Word.  If you have been experimenting with customization contexts, you might have several menu items that appear when you right click a document. The article that I posted shows how to prevent this from happening for… Read more

My Word Add-In Creates Duplicate Menu Items. Make it Stop! (Norm Estabrook)

So I want my add-in to place a custom command into the shortcut menu. The shortcut menu is that cool menu that appears when you right-click a document. Great, so I read some articles in MSDN, write some code, run the add-in and voila there it is! I give it to my buddy, he is… Read more

Making a Custom Ribbon Appear Only for a Custom Outlook Form (Norm Estabrook)

Many of you have posted questions to the VSTO Forum about how to make custom tabs, groups and controls appear only in cases where the user opens a custom form in Outlook. The reason why that is difficult to accomplish is because there is no way to specify the names of custom forms in the… Read more