I've written a customcontrol and i want to be able to set an Icon property in the designer. This property should give me the option to select an icon from the embedded resources, exactly like the picturebox control (property Image), but i cant seem to figure out how to achieve this.
Unfortunately there is not alot of information online about creating controls with rich design-time support, but the information that i did find was about TypeConverters, TypeEditors yet none tell me how to achieve what i want.
Can anyone point me in the right direction?
If you are after something similar PictureBox
control, you don't need any things, try this:
public class SimpleImage : Control
{
public Image Image { get; set; }
}