Hello,
Based on my understanding, you want Windows Explorer like control which can list the folders and files on a form. If I misunderstood you, please feel free to correct me.
If my understanding is correct, please take a look at the following sample.
http://www.codeproject.com/KB/cs/tv-lv-basic41.aspx
The left side of the form is a TreeView control while the right side is a ListView. The TreeView control is used to display all the folders. When you click a folder, the ListView will display all the files in that folder.
In the source code, you can see it use DirectoryInfo and FileInfo to retrieve folders and files information from system.
Hope this helps you. If you have any doubt, please feel free to tell me.
Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!