Dear All,
I have loaded a Image in a Imagebox from a localpath.Now I want to delete the image from the physical location.I am getting an error message that
"the file is used by another window".How to rectify this problem.
I am trying to delelte file as
VB Code:
  1. My.Computer.FileSystem.DeleteFile(tempFile & "." & extension)
How to clear the image from the Imagebox.

Thanks in Advance,
Dana