Avoid Flickering


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
But as the scroll is controlled from the panel it invalidates
completelly the listview and paints the whole listview producing
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.


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