if you need to clear the clear the graphics which has been painted before use this tip:
if you need to call OnPaint function when you change a property of class
you can call Invalidate function
and Refresh it !
[Category("Image"),
Description("Image for the Control" )]
public Image Images
{
get { return _image; }
set
{
_image = value;
if (this.Parent != null)
Parent.Invalidate(this.Bounds, true);
this.Refresh();
}
}