3
Answers

Release image file on button click.

Ranjit Powar

Ranjit Powar

9y
681
1
I have a picture box in which I add image. In button click event I set image property of picturebox to null. Now I want to release the handle to the file and delete it. How to do this. When I try to delete, it gives error file is used by another process?
Answers (3)