overlay an icon on the shape

Mar 9, 2013 at 1:13 AM
Is there a way i can draw an icon on top of the shape?
I want to draw a small icon onto one of the corners of a shape.
Sometimes the icon is drawn, depending on a specific status or condition.

Can you give me some sample code on how to do this???

thanks,
Coordinator
Mar 11, 2013 at 2:39 PM
It's quite difficult to provide suitable sample code without any knowledge of the idea behind.

If the overlay icon belongs to the shape, I would recommend to override the shape's Draw(Graphics graphics) method and call graphics.DrawImage(...) in order to draw the overlay icon.