I can use the below code to create a toolbar in outlook:
try
{
// See if it already exists this.toolbarButton = (Microsoft.Office.Core.CommandBarButton)commandBars["Standard"].Controls["SE Dial Contact"]; if (applicationObject.ActiveExplorer().CurrentFolder.FolderPath.EndsWith("Inbox")){
this.toolbarButton.Visible = false;}
}
catch (Exception){
// Create it this.toolbarButton = (Microsoft.Office.Core.CommandBarButton)commandBars["Standard"].Controls.Add(1, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value); if (applicationObject.ActiveExplorer().CurrentFolder.FolderPath.EndsWith("Inbox")){
this.toolbarButton.Visible = false;}
this.toolbarButton.Caption = "SE Dial Contact"; this.toolbarButton.Style = Microsoft.Office.Core.MsoButtonStyle.msoButtonCaption;}
but I want this toolbar to be created in each contact in outlook (when user double clicks a contact).... how is this done