I wanted to make the listview show thumbnails only when the items are visible on the screen.
Is there a way to do this?
I wanted to make the listview show thumbnails only when the items are visible
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this by using a
ListViewin virtual mode, and then adding your generated thumbnails to theLargeImageListduring theRetrieveVirtualItemevent (if they are not already there).If you wanted most of the work done for you, you could use a
FastObjectListViewfrom the ObjectListView project (an open source wrapper around .NET WinForms ListView) and then follow this recipe on how to use images loaded from a database. Your images, of course, would be thumbnails created from the source rather than images from a database but the logic is the same.