Click here to Skip to main content
16,022,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

what is the fastest way to populate ImageList with thousands of images?

With imagelist.add(string key, image image) population takes very long time.

Maybe there is some example with populating largeimage colection when listview is set to be virtual?

In result i display those images in a listview.

thank you in advance for any info.
Posted
Updated 2-Sep-11 0:20am
v2

1 solution

This[^] talks about an interesting workaround that uses AddRange to make the Listview faster.
 
Share this answer
 
v2
Comments
nestor0424 2-Sep-11 4:53am    
listview.addrange is faster to add listview items. In my problem population of image list takes aproximetaly 80% of all loading time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900