Hi,
I've got the following code
files = di.GetFiles("*.jpg");
for (int i = 0; i < files.Length; i++)
{
il.Images.Add(System.Drawing.Image.FromFile(folder + "\\" + files[i].Name));
lv.Items.Add(files[i].Name, i);
}
the code fills a System.Windows.Forms.ImageList with pictures from a jpg files. it also creates a System.Windows.Forms.ListView where each item is associated with a picture in the imagelist.
I made the files small and tried to optimize the code. Yet I cant get under 3 seconds for 290 ~30k jpg files(or any other format).
Do you have a better way to load the list view?