
Change the Default Icon of the Self-created ActiveX control
What you need to do is change the ToolboxBitmap property. So bring up the
control with VB (I'm assuming VB6) and select the ToolboxBitmap property -
you'll see it has the value [None]. When you click on the property, a file
select dialog is brought up. Select a .bmp bitmap file and this will be the
bitmap that's put in the Toolbox.
The bitmap should be 15x16 pixels (I always use 16x16 so I guess that will
work too, but I probably lose a row or column). One of the corner pixel's
colour is used as a background colour (someone will say which, but I always
assume it's just one of them so set them all the same). This means that the
colour of that pixel is not drawn in it's actual colour in the finished
bitmap, rather it is drawn in the colour of the toolbox background. So if
you set the corner pixel to bright green, all bright green pixels in the
bitmap will be drawn as the background colour and not as bright green.
eric
Quote:
>Hi,there
> I created a ActiveX control. Its icon displayed in toolbox is the VB
>default icon. Can I change it?