Hello All,
I have a picturebox on a VB.NET form. I use an OpenfileDialog to select an
image for the picturebox (pb.image=image.fromfile(Openfiledialog.fileame)).
Once the image is loaded, I want to delete the file using
file.delete(OpenfileDialog.filename). however, this is throwing an exception
saying that the file is in use by another application.
After I load the image, what do I have to do to release the file so I can
delete it?
Regards,
Lee