title: Why doesn't ToolboxBitmapAttribute work?
body: <p>I have a UserControl in my project called 'UIWizard.cs', and a 24-bit Bitmap named 'UIWizardToolboxBitmap.bmp' that has it's build action set to 'Embedded Resource'. I verified that it does exist in the manifest:</p>
  
  <pre><code>.mresource public BitFlex.Windows.Forms.Resources.UIWizardToolboxBitmap.bmp
  {
      // Offset: 0x00000000 Length: 0x00000336
  }
  </code></pre>
  
  <p>I have tried these attribute declarations:</p>
  
  <pre><code>[ToolboxBitmap(typeof(UIWizard), "BitFlex.Windows.Forms.Resources.UIWizardToolboxBitmap.bmp")]
  public partial class UIWizard : UserControl {
  
  [ToolboxBitmap(typeof(UIWizard), "UIWizardToolboxBitmap.bmp")]
  public partial class UIWizard : UserControl {
  
  [ToolboxBitmap(typeof(UIWizard), "UIWizardToolboxBitmap")]
  public partial class UIWizard : UserControl {
  </code></pre>
  
  <p>When I set my library to 'Release Build' and reference it in <em>another project</em> and add the ToolBox items manually using <em>Choose Items...</em> it still fails to display my bitmap properly. I want to avoid using a absolute path, because this is a source controlled project, and not everyone will be using the same mappings.</p>
  
  <p>MSDN really isn't much help as the documentation on the ToolBoxBitmapAttribute is lacking, and most of what's on the web is pretty vague.</p>