How to Prevent Flicker when Updating ListView

How to Prevent Flicker when Updating ListView

Post by Charles La » Sun, 27 Mar 2005 04:12:51


Some of the eagle-eyed amongst you will spot this as a direct follow on from
my earlier post about critical timing in .NET.

I want to use a ListView to display my output (instead of the sluggish
RichTextBox), but it flickers madly when I update it. There have been
numerous posts about this, but I have found no solution. Enabling
double-buffering does not seem to help, so has anyone any idea how it can be
done?

TIA

Charles
 
 
 

How to Prevent Flicker when Updating ListView

Post by Cor Ligthe » Sun, 27 Mar 2005 04:20:13

Charles,

Did you already look about the messages from our newsgroup flicker (not in
the Dutch meaning) expert Mick

http://www.yqcomputer.com/ +flicker+listview&rnum=1#120dce829000245a

Cor

 
 
 

How to Prevent Flicker when Updating ListView

Post by Cor Ligthe » Sun, 27 Mar 2005 04:28:25

Charles,

Forget it, I saw listview in the thread however it was not as your problem.

I find it needles to tell to you that there is a standard option for that,
because I assume that you know that and does not work for you as you expect.

Cor
 
 
 

How to Prevent Flicker when Updating ListView

Post by David Pend » Sun, 27 Mar 2005 11:14:24

Use the .BeginUpdate, .EndUpdate methods of the ListView class.
 
 
 

How to Prevent Flicker when Updating ListView

Post by Charles La » Sun, 27 Mar 2005 18:53:53

Hi David

Thanks for the response. Sadly that does not help, though. I already have it
in place. Every time the EndUpdate method is called the control refreshes,
hence the flicker. I am adding a row every 200 ms, say, and the flicker is
especially bad.

Charles