Flicker-Free Control.

  • Thread starter Thread starter Mohammad-Reza
  • Start date Start date
M

Mohammad-Reza

Hi
I put a ListView in my form and this ListView refresh every second, I want
to know how can I made this control Flicker-Free.
Thanks.
 
Try to use this techique.

ListView listviewcontrol = new ListView();

listviewcontrol.BeginUpdate();
// Do your thing.
listviewcontrol.EndUpdate;

Hope it helps,

regards,

Poolbeer
 
I know this still doesn't eliminate all the flickering. This is because
EndUpdate() redraws the entire control.

Maybe you could change the logic so that it will only update when
neccessary. (Perhaps using a background thread)

Greets,
Poolbeer
 
Back
Top