i used DirectoryInfo to get files from a folder.
but let say the directory to the folder does not exist
i want a message that says ("directory not found")
DirectoryInfo dinfo = new DirectoryInfo(@"C:\Users\nour\Desktop\Gedaan");
FileInfo[] Files = dinfo.GetFiles("*.DOCX");
foreach (FileInfo file in Files)
{
LB2.Items.Add(file.Name);
}