注册一个节点双击事件
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Node.Parent != null)
{
string name = e.Node.Parent.Name;//节点名称,看不到的
string text = e.Node.Parent.Text;//节点文本,就是看到的
}
}