How to enable or disable ribbon buttons in Outlook

I have an Outlook add-in created using VSTO. Using the Ribbon Designer, I created a tab with three buttons on it. (Environment: Outlook 2010, .NET 4.0, latest version of VSTO)

Pressing one of the buttons opens the model dialog box. While the user is working on this dialog, I do not want him to click the button again. So basically I want to tear off the button before closing the dialog box. How can i do this?

For some reason, in the button click handler, if I do this.button1.enabled = false;, it just doesn't work. I missed something about how tapes work.

thank

+2
source share
1 answer

IRibbonUI.InvalidateControl(controlID) IRibbonUI.Invalidate(). . MDSN , . , Fluent UI, . , ( ), .

+1

All Articles