I wrote code using vb.net
picturebox1 display image a.jpg.
if picturebox1 display, file a.jpg can't delete it because "being used by another person".
how to close picturebox1 so file a.jpg can delete?
i have tried to use picturebox1.dispose() and picturebox1.image=nothing but still can delete and display error message "being used by another person"