I have created a UserControl (OCX). How do I assign an icon to it, so I don't just see the standard icon in the toolbox.
Printable View
I have created a UserControl (OCX). How do I assign an icon to it, so I don't just see the standard icon in the toolbox.
Design/select a 16 x 15 pixel bitmap. The upper left pixel defines the transparent color for the "toolbox icon". Anything larger than 16x15 will be stretched as needed.
...where can I find Design/select ?
no, by design, I mean open a graphics app like MS Paint for example, and design your own and save it. Once you have one you would like to use, close all design-time windows in your project, open the usercontrol in design view so you see its property sheet. Find ToolboxBitmap in the sheet, click the ellipsis button (...) and select the bitmap. Save the project.
Great. Thanks.
Thanks Work