Ranjit Powar

Ranjit Powar

  • 293
  • 6.3k
  • 1.4m

Release image file on button click.

Jul 9 2015 1:23 AM
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)