all groups > asp.net building controls > april 2006 >
You're in the

asp.net building controls

group:

Toolboxbitmap Attribute for custom control



Toolboxbitmap Attribute for custom control studen771
4/29/2006 1:25:01 PM
asp.net building controls: THanks in advance to anyone who can help :)

The only way I'm able to add my custom 16x16 toolbarbitmap image is by using
the ToolbarBitmap constructor:
ToolbarBitmap(//path to imagefilename)

I'm unable to get it to display embedding it has a 'resource' in the
assembly the control's class is contained in (either by using 2 of the other
remaining constructors for the ToolbarBitmap class)

I'm using VS.Net 2005 and this is driving me crazy. I want to keep the image
as a resource within the assembly to keep everything self contained.

RE: Toolboxbitmap Attribute for custom control studen771
4/29/2006 3:21:02 PM
Ha! I corrected the issue there was an issue with the bitmap file it was
using.

[quoted text, click to view]
AddThis Social Bookmark Button