I am using pictures that are embedded into a database. I can create the files, and load the picture into the picturebox. My problem arises that after I am done using the picture, I need to kill the temporary file, but I keep getting an error saying that I can't access that file because it is in use by another program. I have tried setting the image to nothing, I have also tried the picturebox.image.dispose method, but nothing seems to be working.
Does anyone have any ideas how to force the release of the file?
thanks for any help.
Does anyone have any ideas how to force the release of the file?
thanks for any help.