title: ToolBoxBitmap Attribute does not work in my component
body: <p>I have a Windows Form application. I've added a class to my project named MyLibrary.cs and I inherited this class of System.ComponentModel.Component and I've also added a bitmap image with its build action set to EmbeddedResource to my resources folder, but when I write the code below and build the project my customized icon does not change when I want to drag and drop my component to my Form. Would you please help me?</p>
  <p>I've checked a lot of links like <a href="http://msdn.microsoft.com/en-us/library/system.drawing.toolboxbitmapattribute.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.drawing.toolboxbitmapattribute.aspx</a> and <a href="https://web.archive.org/web/20120804065638/http://www.bobpowell.net/toolboxbitmap.htm" rel="nofollow noreferrer">How to find the elusive ToolboxBitmap icon</a> but none of them worked for me!</p>
  <p>Here is my code:</p>
  <p>MyLibrary.cs</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  internal class resfinder
  {
  }
   
  namespace MyForm
  {
    
      [System.Drawing.ToolboxBitmap(typeof(resfinder),&quot;MyForm.Bitmap1.bmp&quot;)]
       public class MyLibrary:System.ComponentModel.Component 
      {
  
      }
  }
  </code></pre>