Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am very new to code project.

I'm implementing project where in the treeview control needs to show up repository. API similar to tortoise SVN.

The tree view should be able to list out the directories from a given URL.

I have a basic treeview code which i got from this site which shows logical drives in the system, want to extend it;How to go about it?

Thanks

Regards,
Srikanth.
Posted

1 solution

I have a basic treeview code which i got from this site which shows logical drives in the system, want to extend it;How to go about it?
All you need is the XML structured data that will tell you the levels of folders in your repository. Thus, to start with, try to formulate a XML where your repository folders can be configured as a tree. Once done just bind the same with the treeview.

Try!
 
Share this answer
 
Comments
srikanthyadake 25-Apr-11 7:48am    
Thanks Sandeep for the reply.
Here I think I need to refresh to XML every time I wish to open the repo. Is there any thing which can be done with ManagementObjectSearcher()?
Will this take some form of query, where in I give the URL to the query and it returns the structure taking the URL as the root node?
Sandeep Mewara 25-Apr-11 7:57am    
Not sure of what method you are talking of man!

But surely, every time there is any change, you need to build that node xml again if not entire.
srikanthyadake 25-Apr-11 8:03am    
Hmmm
I was talking about ManagementObjectSearcher class which is under system.management namespace. This I have used to retrieve logical drives.
Sandeep Mewara 25-Apr-11 8:06am    
Ok.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900