G
Guest
I am loading a image into a picture box using this line of code
_objPic.Image = System.Drawing.Image.FromFile(_fileName)
The picture box is then displayed on a form.
The file in _fileName is a temperary file.
After the form is closed down, I go back into the form and try and delete
the tempary file used in the previous display. the application errors with
cant delete rescource as it is used by another process.
On closing the first form I call the dispose method.
Nothing works until I close the application and start the process again.
any ideas
_objPic.Image = System.Drawing.Image.FromFile(_fileName)
The picture box is then displayed on a form.
The file in _fileName is a temperary file.
After the form is closed down, I go back into the form and try and delete
the tempary file used in the previous display. the application errors with
cant delete rescource as it is used by another process.
On closing the first form I call the dispose method.
Nothing works until I close the application and start the process again.
any ideas