title: Outlook Event is not getting fired on click of custom button
body: <p>I am developing a Microsoft Outlook Add-in, where I have added one button in Add-In tab name <code>OPENISMS</code>. I could see the button, however on click the event is not getting fired. I have no clue why it is behaving in this manner. Please find below are code for adding button and attaching event to it. Any help will be highly appreciated. </p>
  
  <pre class="lang-cs prettyprint-override"><code>private void AddButtonToNewDropdown()
  {
      Office.CommandBar commandBar = this.Application.ActiveExplorer().CommandBars["Standard"];
      Office.CommandBarControl ctl = commandBar.Controls["&amp;New"];
      if (ctl is Office.CommandBarPopup) 
      {
          Office.CommandBarButton commandBarButton;
          Office.CommandBarPopup newpopup = (Office.CommandBarPopup)ctl;
          commandBarButton = (Office.CommandBarButton)newpopup.Controls.Add(1, missing, missing, missing, true);
          commandBarButton.Caption = "OpenISMS";
          commandBarButton.Tag = "OpenISMS";
          commandBarButton.FaceId = 6000;
          //commandBarButton.Enabled = false;
                        commandBarButton.OnAction = "OpenISMSThruMail.ThisAddIn.ContextMenuItemClicked";
          commandBarButton.Click += new Office._CommandBarButtonEvents_ClickEventHandler(ContextMenuItemClicked); 
      }
  
  }
  private void ContextMenuItemClicked(CommandBarButton Ctrl, ref bool CancelDefault)
  {
      if (currentExplorer.Selection.Count &gt; 0)
      {
          object selObject = currentExplorer.Selection[1];
          if (selObject is MailItem)
          {
              // do your stuff with the selected message here
              MailItem mail = selObject as MailItem;
              MessageBox.Show("Message Subject: " + mail.Subject);
          }
      }
  } 
  </code></pre>
  
  <p>I am calling <code>AddButtonToNewDropdown()</code> method from <code>ThisAddIn_Startup</code> event.</p>