Now, I just want my PictureBox to display the picture and CLOSE the actual "mypicture.jpg" file, but for some reason whenever I try to delete the "mypicture.jpg" file while my app is running, it errors and says "File is in use."
How do I fix this? What line of code am I missing?
Question
wa22guy
Ok, so I have a PictureBox on my form named pctInternet. It has the following code associated with it:
Now, I just want my PictureBox to display the picture and CLOSE the actual "mypicture.jpg" file, but for some reason whenever I try to delete the "mypicture.jpg" file while my app is running, it errors and says "File is in use."
How do I fix this? What line of code am I missing?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts