Yesudass Moses
Yesudass Moses

Reputation: 1859

Change the position of Outlook Addin Context Menu

I am trying to add a context menu for my contact Item in an Outlook Addin Project.. But the Menu appears at the bottom... How can I set it as first Item in Menu... ?

var contextButton = commandBar.Controls.Add(Office.MsoControlType.msoControlButton, missing, missing, 0, true) as Office.CommandBarButton;

Please Help me. This is the Image of the Menu on Mail Items.

enter image description here

Upvotes: 0

Views: 451

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

When calling Controls.Add, one of the parameters is Before. Find the Copy menu item and pass it as the Before parameter.

Upvotes: 1

Related Questions