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