My ASP knowledge base

Archive for June 23rd, 2007

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
{ ….

Posted in asp, custom control | Leave a Comment »