How to add an icon to your custom control
There's a lot of confusion for this on the internet. However, this is a very simple process.This is how you do it :
- Have an image ready
- Make sure the image name is same as the control class.
- Resize it to 16 x 16 px (can be done with paint)
- While saving, select type as "16 Color bitmap" (paint is really cool !)
- Add it to your project (root directory)
- Go to its properties
- Select the build action as embedded resource.
- Rebuild the control
- Done!