Hi
I want to make a Directory Hirarchy (such as we have seen when we click browse button)
in VC++ or C#
but i don't know what to do.
i know it is related to treeview but how can i tell computer to use my PC information for tree nodes.Is there anybody who can help me?
I'm assuming you are using .NET.
You already know that you will have to feed data into the Treeview class.
For file/directory enumeration, look at the FileInfo, DirectoryInfo and FileSystemInfo classes. The enumeration process will be recursive in nature since we are dealing with tree structures. You may google around for algorithms to traverse tree structures.
Or maybe a simple FileDialog may solve your problem?
Of course i use .NET;and i am new in programming with them.you know i read about File/DirectoryInfo and also TreeView.
I can programming them seprately but cannot relate them to each other if you have an idea let me know.
THX
This article use a CTreeView control to display all the system folders and files like the left pane of the Windows-Explorer, The Icons and File Types unfortunately have been hardcoded in the project, unlike the ones available on the Windows Explorer, The Icons are a Part of the Project and not picked up from the Windows Operating System.