المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Invalidate and redraw



C# Programming
01-05-2010, 06:21 AM
Hi all,
i use, to move a circle in a panel (in a form), a code line such as this:

Grapichs e;

for(...)
{
panel.Invalidate(new Rect(list[i-1].x,list[i-1].y,list[i-1].widht,list[i-1].height));
e.DrawEllipse(list[i].x,list[i].y,list[i].widht,list[i].height);
}

can you help me with a solution that resolve a flicker problem? Is possible to create a doublebuffer in a panel object?

Thanks.

Alex