I have problem with rendering images in ListView in winforms app based on .NET 3.5.
In ListView control I use LargeImageList as thumbnails.
App works correctly in Win 7 – images in thumbnails are OK but if app runs in Win XP images in thumbnails are rendered bad.
Difference between rendering in Win 7 and Win Xp is on this
.
What can cause this behavior?
EDITED: Thank you all for response and advice.It’s solved. I use another control not winforms listview.
You can try using the free ObjectListView control for this purpose. You can download it from http://objectlistview.sourceforge.net.
Basic Implementation
This is necessary because OLV does not directly use a ListViewItem to display elements.
ImageGetterproperty of the column for which you want to display an image (usually the first column) to a function that returns anImage,stringorintwhich corresponds to the image you want to display for the item.If a function returns
stringorint, then the image in the OLV’sLargeImageListorSmallImageListwill be displayed for the item.Enumerablecollection of the items you want to display and attach it to the OLV using theSetObjectsorAddObjectsmethod.