How to Pass path to the nodes of treeView???Windows forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neehakale
    New Member
    • Aug 2007
    • 46

    How to Pass path to the nodes of treeView???Windows forms

    I am doing 1 application where i need to display folder as a root node in TreeView and the files in that folder as child Nodes...can anybody of u knoe how to do this....

    or how to pass the path of that folder to the TreeView Node..???
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    I think you can not pass path of the folder to the treenode. Instead you can use a recursive procedure which will get the all the files from the specified folder and assign it to the treenodes.

    Comment

    Working...