Hi, i am trying to use a list view to display a list of passed and failed items but the images are not always displaying. Sometimes the images will display fine and others they just will not appear.
I've created an ImageList and added the images to it by:
imageList1.Imag es.Add(Bitmap.F romFile(Applica tion.StartupPat h + "\\Images\\imag e.gif"));
I set the small and large Image list properties on the ListView to the newly created image list. I tried swapping these around i.e. only using smallimagelist etc. but still have the same issue. I can not seem to figure out what i am doing wrong. I've tried this both in release and debug mode(however, I did have some issues in release mode which I have now fixed).
Anyone be able to help me with this issue?
Thanks in advance,
Piercy
edit: Heres and image to see what i mean.. These were taken within 5 minutes of each other with no code changes between. just a note, the names are all demo data so dont worry about that.
I've created an ImageList and added the images to it by:
imageList1.Imag es.Add(Bitmap.F romFile(Applica tion.StartupPat h + "\\Images\\imag e.gif"));
I set the small and large Image list properties on the ListView to the newly created image list. I tried swapping these around i.e. only using smallimagelist etc. but still have the same issue. I can not seem to figure out what i am doing wrong. I've tried this both in release and debug mode(however, I did have some issues in release mode which I have now fixed).
Anyone be able to help me with this issue?
Thanks in advance,
Piercy
edit: Heres and image to see what i mean.. These were taken within 5 minutes of each other with no code changes between. just a note, the names are all demo data so dont worry about that.
Comment