Dear all,
I put the PC's desktop to my TreeView list. The code is as
follows. But the text of treenode is too long, I want to just put a
shortname to the treenode, how can I do? if I just put
specialTN.Text= "Desktop", it can display such shortname, but DeskTop
can't be open in this case.
string deskTop=Environ ment.GetFolderP ath(Environment .SpecialFolder. DesktopDirector y);
TreeNode specialTN = new TreeNode(deskTo p, 0, 1);
treeView1.Nodes .Add(specialTN) ;
specialTN.Text= "Desktop";
Jianren
I put the PC's desktop to my TreeView list. The code is as
follows. But the text of treenode is too long, I want to just put a
shortname to the treenode, how can I do? if I just put
specialTN.Text= "Desktop", it can display such shortname, but DeskTop
can't be open in this case.
string deskTop=Environ ment.GetFolderP ath(Environment .SpecialFolder. DesktopDirector y);
TreeNode specialTN = new TreeNode(deskTo p, 0, 1);
treeView1.Nodes .Add(specialTN) ;
specialTN.Text= "Desktop";
Jianren
Comment