ToolboxBitmap and resource files

  • Thread starter Thread starter Adam Dockter
  • Start date Start date
A

Adam Dockter

I want my custom controls to have customer bitmaps but I can't get them to
work if I try to pull the icon from a resource file.

I know that I can add the icon to the project as an embedded resource then
put the attribute.
[ToolboxBitmap(typeof(MyControl),"MyIcon.ico")]

That works fine. But I would really like to put the icon in a resource file
MyControl.resx then use it as the icon. Has anyone ever gotten this to
work. Or has anyone figured out how to compile .ico files as embedded
resources using Nant?

Any help is appreciated.

-Adam dR.
 
Back
Top