Prevent Refresh Flicker

Ehsanit

Well-known member
Joined
Feb 23, 2011
Messages
80
Programming Experience
1-3
I've noticed in a few programs recently that whenever I refresh a control after drawing something to it with the graphics class, the whole thing flickers for a moment. This happens even if it's transparent, and is especially noticeable if a few refreshes are done in a short period of time.
Is there any way to prevent this, or at least to restrict it to the particular location that is actually being drawn on.
 
Instead of Refresh you can use Invalidate and Update methods, invalidating can be done only to the areas that need to update.
 
Back
Top