listbox
datagridview
private void ReadDropperScheduleFiles() { string folderPath = Directory.GetCurrentDirectory() + @"\" + "Libraries"; string subfolder1 = folderPath + @"\" + "Dropper Schedule"; string subfolder2 = folderPath + @"\" + "Support Schedule"; lbxDropperLibrary.Items.Clear(); try { string[] folder1 = Directory.GetFiles(subfolder1); string[] folder2 = Directory.GetFiles(subfolder2); foreach (string file1 in folder1) { lbxDropperLibrary.Items.Add(Path.GetFileName(file1)); } foreach (string file2 in folder2) { lbxSupportLibrary.Items.Add(Path.GetFileName(file2)); } } catch (Exception ex) { MessageBox.Show("error " + ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)