Avoid Flickering


J

Jon Abaunza

Hello to everyone!
I have a Panel that has a ListView. This list view should be always
full size so that the scroll is controlled from the panel (There are
also more controls in the same panel just behind the listview and there
cannot be two scrollsbars; that's why the scroll is controlled from the
panel).
But as the scroll is controlled from the panel it invalidates
completelly the listview and paints the whole listview producing
flickering.
Does someone know how I could avoid it?
 
Ad

Advertisements

?

=?ISO-8859-1?Q?Linus_R=F6rstad?=

Hello Jon!

You could use the BeginUpdate and EndUpdate functions on the listview
object. Call listView.BeginUpdate at the beginning of the function that
controls the scroll and at the end of the function use listView.EndUpdate.

Sincerly
Linus
 

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

Similar Threads

Label: how to avoid flicker? 4
Best way to avoid flickering when redrawing VGA image?? 10
Flickering at OnPaint( ) 3
Stop flickering 2
Flickering Textbox 0
Flickering Textbox 0
Image Flicker 2
Flicker on redrawing 1

Top