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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top