ToolboxBitmap and resource files

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top