Resolved.
Create a picturebox the same size as the image. Modify the
private static void PaintControl(object sender)
{
Control ctrl = sender as Control;
if (isAnimate)
{
using (Graphics gr = ctrl.CreateGraphics())
{
ImageAnimator.UpdateFrames(Image);
//gr.DrawImage(Image, new Point(ctrl.Bounds.Width / 2, ctrl.Bounds.Height / 2));
gr.DrawImage(Image, new Point(0,0));
}
}
}
then just bringToFront() the picturebox before calling Wire, and then sendToBack when calling Unwire.
Of course, you can center the picturebox by doing the following
picturebox.left = this.width/2 - picturebox.width/2
picturebox.top = this.height/2 = picturebox.height/2
Hope it helps.