Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to delete Image form Folder which shown in picture box?
Rashid Khan
Mar 1 2017 7:13 AM
273
Reply
I have form where I can select Data to edit or delete. and picture shown on the form in picture box . trying to delete image so that user can upload new image. All time getting
The process cannot access the file '.....\601.jpg' because it is being used by another process.
tired so far: Image object set dispose on delete button. PictureBox set null.
try to closed the file but same issue
FileStream oFileStreamDec = new FileStream(imgpath, FileMode.Open, FileAccess.ReadWrite, FileShare.Delete);
oFileStreamDec.Close();
sometime it delete file don;t know how but mostly giving error
can someone please helpme out from this
may be i m not clear in my word but please help
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
need sum of cash and sum of cheque
Edit and delete operation with two button in datagridview