Avoid Flickering

  • Thread starter Thread starter Jon Abaunza
  • Start date Start date
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?
 
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
 
Back
Top