Change the Default Icon of the Self-created ActiveX control 
Author Message
 Change the Default Icon of the Self-created ActiveX control

Hi,there
    I created a ActiveX control. Its icon displayed in toolbox is the VB
default icon. Can I change it?


Fri, 21 Sep 2001 03:00:00 GMT  
 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?



Sat, 22 Sep 2001 03:00:00 GMT  
 Change the Default Icon of the Self-created ActiveX control
Hi daysis.  Take a look at the UserControl's ToolboxBitmap Property.

'--------
galen

| Hi,there
|     I created a ActiveX control. Its icon displayed in toolbox is the VB
| default icon. Can I change it?
|
|



Sat, 22 Sep 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Create custom control change property default

2. vb6 self control is ActiveX control??

3. vb6 self control is ActiveX control??

4. connection between a data control and a self-made ActiveX GRID

5. Change default Icons

6. Can I change the default icon for an Outlook Folder

7. Help!Changing VB5 Default Icon?

8. Want to change default Cursor Icon

9. 2nd Post - Changing Folders Default Icon

10. changing msgbox default icons

11. Changing default icon for VB executable

12. Change Label & Icon on OLE Control Icon

 

 
Powered by phpBB® Forum Software