You can try subscribing to
AfterSelect of
NodeMouseClick events:
private void TreeView1_AfterSelect(System.Object sender,
System.Windows.Forms.TreeViewEventArgs e)
{
switch((e.Action))
{
case TreeViewAction.ByKeyboard:
MessageBox.Show("You like the keyboard!");
break;
case TreeViewAction.ByMouse:
MessageBox.Show("You like the mouse!");
break;
}
}
or
void treeView1_NodeMouseClick(object sender,
TreeNodeMouseClickEventArgs e)
{
textBox1.Text = e.Node.Text;
}