|
-
Dec 9th, 2003, 08:34 AM
#1
Thread Starter
Lively Member
Icon of own control
I have just created an own control. I know how to include it into the toolbox. But I would like my control have a specific icon in the toolbox. How can I do it?
-
Dec 9th, 2003, 12:38 PM
#2
Sleep mode
Easy . First your image should be 16X16 with color of 16bit . Then add that as resource file . Change Build action as embedded resource. After that , add this attribute to your class . like so :
[ToolboxItem(true)]
[ToolboxBitmap(typeof(myprojectname))]
public class blah : foo .
that's all .
-
Dec 9th, 2003, 07:12 PM
#3
I wonder how many charact
For distributive purposes, Pirate's method is the one you want. For your own in-house use, just include a bmp with the same name as the class of your control. The IDE will automatically pick it up.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|