title: c# Outlook add-in custom Icons with custom Region Form
body: <p>I'm developing an Outlook 2010 addin in Visual Studio 2010.</p>
  
  <p>I have created a custom Form Region that is going to implement the messageClass called:</p>
  
  <blockquote>
    <p>IPM.Note.Archivado</p>
  </blockquote>
  
  <p>This class is going to be assigned to processed messages by an application using exchange
  web services that will run nightly. This is tested and working ok. When the Form Region
  is loading I can recover the:</p>
  
  <blockquote>
    <p>message.MessageClass as "IPM.Note.Archivado"</p>
  </blockquote>
  
  <p>Ok, What I need now, It's to assign a different inbox icon to the messages that matches
  that messageClass, so I used the property panel in the custom Region Form and selected
  icons for read, forwared, default, actions without problem.</p>
  
  <p>I can achieve this if I choose the FormRegionType as <strong>replacement</strong> or <strong>Replace-ALL</strong> in the
  manifest, but what I need is this form windows to be <strong>AdJoining.</strong></p>
  
  <p>When the formRegionType is <strong>adjoining</strong> I can not get the assigned icons to load in the
  inbox panel.</p>
  
  <p>I have been reading a lot of documentation but I can't find the solution to my problem.</p>
  
  <p>Here it's form Region definition:</p>
  
  <pre><code> [Microsoft.Office.Tools.Outlook.FormRegionMessageClass(Microsoft.Office.Tools.Outlook.FormRegionMessageClassAttribute.Note)]
          [Microsoft.Office.Tools.Outlook.FormRegionMessageClass("IPM.Note.Archivado")]
          [Microsoft.Office.Tools.Outlook.FormRegionName("hnaOutlookAddin.FormRegionMessageClassArchivado")]
          public partial class FormRegionMessageClassArchivadoFactory
          {
          }
  </code></pre>