title: Including embedded image as Toolboxbitmap
body: <p>Common practice to show a image of control in visual studio toolbox includes embedding the image as a Resource. Instead i tried embedding the image file (<code>sidebar.png</code>) into a resource file <code>Resources.resx</code>. I don't have the lightest clue as to how i can set the image as toolboxbitmap. I tried below &amp; no image appears, could you give me right thing to do here</p>
  
  <pre><code>[ToolboxBitmap(typeof(Sidebar),"sidebar")]
  public class Sidebar : WebControl
  </code></pre>
  
  <p>where "sidebar" string represents the name of the image in the resx file that needs to be shown as a icon in visual studio toolbox.</p>
  
  <p>note: All other posts details on how to include when the image is a embedded resource, not when inside a resource file.</p>