Computer Science, asked by TechyShadow, 1 month ago

How to sort files and their tags in c#?
I will mark your answer as brainliest if it works

Answers

Answered by SujalBanik
1

Answer:

Here is your answer

Explanation:

I suggest you to go through below reference links:

Extend OpenFileDialog and SaveFileDialog the easy way

OpenFileDialog file sorting

If you want to do in OpenFileDialog then you have to create a custom dialog and then use the Win32 API calls to modify default behavior of the dialog.

How to Open a Directory Sorted by Date? -- This is another possible pragmatically possible way as suggested:

DirectoryInfo dir =

new DirectoryInfo(@"C:\Windows");

FileInfo[] files = dir.GetFiles();

Array.Sort(files, (x, y) => x.LastWriteTimeUtc.CompareTo(y.LastWriteTimeUtc));

Thanks

Similar questions