How to generate child nodes in I click the treeview (after file text file name), access to the I click on the file path of the files in the folder?
CodePudding user response:
String getPath (TreeNode tn)
{
String r=tn. The Text;
While (tn. The Parent!=null)
{
Tn=tn. The Parent;
R=tn. Text + "/" + r;
}
return r;
}
CodePudding user response: