Reputation: 1859
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.
Upvotes: 0
Views: 451
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