S
Stanley
I add some JPG files to a imagelist control and bind the imagelist to a
listview control.
This will list out all JPG files in the listview control.
Then I add a "Delete" button for deleting the JPG files.
In the click event of the "Delete" button, I remove the selecteditem from
the listview control and also the physical file.
I'm not able to delete the physical JPG file because an exception is thrown
and said that my program is still using the JPG file.
How to release the JPG file handle after accessing it using "image.fromfile"
?
Thanks.
listview control.
This will list out all JPG files in the listview control.
Then I add a "Delete" button for deleting the JPG files.
In the click event of the "Delete" button, I remove the selecteditem from
the listview control and also the physical file.
I'm not able to delete the physical JPG file because an exception is thrown
and said that my program is still using the JPG file.
How to release the JPG file handle after accessing it using "image.fromfile"
?
Thanks.