You have to create e 16x15 bitmap using your favorite editor (Paint is ok)
and then assign it to the ToolboxBitmap property of your UserControl
This is what MSDN says, and it is correct. What it DOES NOT say is that VB
uses the color of the pixels at the corners as the 'transparent' mask color,
so you can create fancy icons (like the Timer control). I do not remember
which corner is used, or if more than one, I just put in all four corners
colors that I do not use anyplace else
m.
On Tuesday, January 30, 2001 11:12 PM, Raymond Lo [SMTP:ytlo@n...]
wrote:
> Dear Sir,
> When you want to have a command button in a form, you will drag the
> command button from the Toolbox into your form. Each control in VB has its
> own icon.
> I want to make my own icon for my newly created user control in the
> Toolbox. I would be appreciated if you could grant me some methods on how
> to achieve this.
> Many thanks in advance.
>
> Thanks and best regards.
> Raymond.