Release image file on button click.
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?

Ranjit PowarPosted Jul 9, 2015, 3:05 AM
Ranjit PowarPosted Jul 9, 2015, 2:53 AM
Kailash PolaiPosted Jul 9, 2015, 2:07 AM