TreeViewItem item
Long l_handlel_handle = tv_list.FindItem(CurrentTreeItem!, 0)
GetItem(l_handle ,item)
Long l_handlel_handle = tv_list.FindItem(CurrentTreeItem!, 0)
GetItem(l_handle ,item)
解决方案 »
- 有一个存储了3个学生的studentsList, liststudentList.Clear();后会发生什么?请概述。
- FileUpload上传文档的格式转换问题
- [楼主陷入深深的迷茫中]C#+SQLSERVER打包问题
- 新手问题
- 大家帮帮忙..急啊!!呵呵...
- 我想在一个PictureBox 中显示文字,不过放上label后,就会被label挡住,怎样才能使Label透明显示呢?
- 可视化编程的步骤是怎样的?(高分相送)
- 关于IHTMLImgElement接口的声明
- 用c#做COM+
- 数据库插入
- 各位大侠救命呀!一个Socket通信问题。UP者有分!
- 哪位大哥有mcad/mcsd的书、chm文档吗?
这个属性得到当前选中的节点
private string treeNodePath(TreeNode selectedTN)
{
//根目录的路径
String path = this.CDListPath;
int i = 0;
XmlNode root;
root = this.XmlDocMain.DocumentElement;
TreeNode baseTN = new TreeNode();
baseTN = this.treeViewCD.Nodes[0];
TreeNode tempTN = new TreeNode();
tempTN = selectedTN;
while(baseTN != selectedTN)
{
while(tempTN.Parent != baseTN)
{
tempTN = tempTN.Parent;
}
while(baseTN.Nodes[i] != tempTN)
{
i++;
}
baseTN = baseTN.Nodes[i];
path += "\\" + baseTN.Text;
i=0;
tempTN = selectedTN;
}
return path;
}
.....
TreeNode tn=tv.GetNodeFromIndex(tv.SelectedNodeIndex);