Código:
Se que es un archivo que se llama vshost32.exe el que no me deja eliminarla y el mensaje de error que me da es este'Asi cargo la imagen cuando pulso y boton y todo bien PictureBoxFoto.Image = Image.FromFile("fotos/Foto.bmp") 'El problema es cuando intento borrarla PictureBoxFoto.Image = Nothing My.Computer.FileSystem.DeleteFile("fotos/Foto.bmp")
System.IO.IOException: El proceso no puede obtener acceso al archivo 'C:\Users\Asael\documents\visual studio 2010\Projects\RegistroGym\RegistroGym\bin\Debug\fo tos\1Foto.bmp' porque está siendo utilizado en otro proceso.
en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
en System.IO.File.InternalDelete(String path, Boolean checkHost)
en System.IO.File.Delete(String path)
en Microsoft.VisualBasic.FileIO.FileSystem.DeleteFile Internal(String file, UIOptionInternal showUI, RecycleOption recycle, UICancelOption onUserCancel)
en Microsoft.VisualBasic.MyServices.FileSystemProxy.D eleteFile(String file)
en RegistroGym.FrmListaClientes.Button3_Click(Object sender, EventArgs e) en C:\Users\Asael\Documents\Visual Studio 2010\Projects\RegistroGym\RegistroGym\FrmListaClie ntes.vb:línea 33
Espero que me puedan ayudar
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)