Code!
As requested here's the core Open and Delete parts of the code, from their respective functions.
Opening the Image:
PreviewLoc=App_Path & "images\" & dr("RecipePicture")
PictureName = dr("RecipePicture")
picPreview.Image=System.Drawing.Bitmap.FromFile(PreviewLoc)
Ignore the wierd...
Nada
Doesn't work. I still get the standard "Additional information: The process cannot access the file (Picture FIle Name Here) because it is being used by another process." Error
Any idea what could be causing this? So frusturating!
I am making a program that allows users to enter information into a database and import pictures from other areas of their computer. The selected picture is copied to an Images directory inside the program directory.
However I cannot delete the image when the delete function is called. The...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.