Display all Files and Folders in a Directory in C#


You can easily list and display all the files and folders in a C# application using the DirectoryInfo class. First have a look at the application screenshot which uses this class to display the Files and Folders in a specified directory. All the Files and Folders are displayed in a ListView



Identify Any Key Pressed on Keyboard





Now you can capture any key pressed on the keyboard, not only restricted to the English or your language letters but also various other keys such as the Windows Key, Properties Key, F1, F2 and other function buttons, the Home, PageUp and PageDown etc.