Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do I assign an icon to a user defined control?

How do I assign an icon to a user-defined control so, when that control is added to the toolbox, it shows up with that icon?
I know your frustration! The first time I ran into this same problem, I nearly pulled my hair out trying to figure it out. The trick is to add a 16x16 bitmap to your project. In the bitmap's properties, set the Build Action to "Embedded Resource" and Custom Tool Namespace to the exact namespace for your control.

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close