Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
how fix unreadable file selected in listbox c#winform
Mohamed Moumni
Jul 2 2017 3:03 PM
208
Reply
Hi, I have problem when I try to get files from a directory, but all those files contain a file doesn't exist in specific directory, I use this code for getting files
FileInfo[] dr_files = dr.GetFiles();
foreach
(FileInfo f
in
dr_files)
{
listBox3.Items.Add(f);
}
here i get the files inlistbox but the file highlighted doesn't exist in directory
when i double click to open the file that doesn't exist in directory from listbox(word file) I have this message
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Model in asp.net?
how to do text wrap up to excel using javascript