>Anyone know how to customize the icon that appears in the toolbox for custom controls?
>
>I’ve created my own base class of all the standard winforms controls, (TextBox, Button, etc) and by default they get an icon that looks like a gear. I want to use the same icons that the IDE gives the controls from which I have inherited.
>Thanks,
Found the answer! Thanks to Mattias Sjögren
[ToolboxBitmap(@"D:\txt.bmp")]
public class RDSTextBox : System.Windows.Forms.TextBox
{
public RDSTextBox()
{
}
}
Chris