With the help of this link How to display directories in a TreeView? I was able to add a directory into treeview with the method "Buildtree". Now my next step is complicated. The directory I added has several subdirectories and each one of them has files with the building date as their names.
What I shall do now is in my treeview of my program, between the level of subdirectory and the level of files I should add another level of node, with the date of files as its name (e.g. 140422). The files with this date (140422) will be folded in this node. (Since I will have hundreds of files in a folder, I shall categarize them according to their date into different upper level nodes).
I think I shall modify the "Buildtree" method but I don't know how. Any help or ideas? Thanks in advance