hello i m deleting a file but it is giving the error that "The process cannot access the file 'D:\MyDataBase\106.jpg' because it is being used by another process."
What I did was I created a picture box and the when the form loads the picture box image is referenced to that directory... then i closed the dialog for the picture box and wanted to delete it but the error pops out. Is there something that I should do on that dialog to somehow close the image first after viewing?