Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 13, 2006 05:26 AM by dbottjer
Dec 02, 2005 07:38 PM|LINK
Dec 03, 2005 01:20 AM|LINK
Dec 05, 2005 06:38 PM|LINK
I have already read the article you pointed me to, but I don't see an icon property for the control class. Where do I set this property?
Dec 06, 2005 11:06 AM|LINK
I also read the refered topic, and saw nothing about set an icon for a control.
Dec 06, 2005 11:56 AM|LINK
if i'm not mistaken, you have 2 options:
1.) name the bitmap such that it has the same name as the control
2.) use the toolboxbitmapattribute
Dec 06, 2005 08:15 PM|LINK
I have tried both of these techniques and neither seems to work.
Dec 07, 2005 05:57 PM|LINK
Let me say if this work for you !
Dec 07, 2005 09:15 PM|LINK
Dec 09, 2005 05:53 PM|LINK
Dec 12, 2005 10:48 AM|LINK
Ok, so just forget the toolbox attribute...
Verify your bitmap has the following properties :
Height of 16 pix
Width of 16 pix
Give it the same name as the class of your custom control (ie : yourControl.bmp)
Place it in the same directory, and then make it an embedded resource of your assembly.
To enable the bitmap as an embedded resource, right-click the bitmap file and select the Properties menu item. From the Properties page, set the Build Action to Embedded Resource.
So when you will place your control in a page, the Toolbox will search the assembly manifest for an embedded bitmap with the same qualified name as the control, here is the reason why the bitmap must have the same name as the
class of your control.