My ASP knowledge base

Custom Control: how to add a toolbar image

Posted by Jan on June 23, 2007

In case you want to have a custom image for your control in the Visual Studio toolbox, you can do this by adding the following directive to your user control:

namespace CustomControlsLibrary
{
[System.Drawing.ToolboxBitmap(@"c:\CustomControl\Resources\toolbox.bmp")]
public class CustomControl : Control, INamingContainer
{ ….

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>