Software solutions for a mobile world

I have been writing some user controls recently, to save importing code around projects. I wanted to use a custom icon in the toolbox, so as usual, I searched and found loads of solutions - generally for the desktop as opposed to the Compact Framework.

After refining my search, I came across this easy solution from fellow MVP Mark Arteaga - thanks Mark.

Simply add a 16x16 bmp file to your project with the same name as the class and set it to embedded resource. So if your class is named SoundRecorder then add a bmp called
SoundRecord.bmp as an embedded resource. Then after compiling, drag your SoundRecorder.dll to your toolbox, and your icon and user control will appear.


Originally posted 12/Jun/2009


M: +44 (0)7860 907493
B:  +44 (0)1204 657497




Twitter Feed