in below file is showing from a directroy file but not sort out I need sort out by modified date.
please help me about this... thanks.
- private void Receipts_Load(object sender, EventArgs e)
- {
- try
- {
- string[] files = Directory.GetFiles(path);
-
- foreach (string file in files)
- {
- show_receipts_listbox.Items.Add(Path.GetFileName(file));
- }
-
- }
- catch(Exception ex)
- {
- MessageBox.Show(ex.Message, "Error");
- }
- }