Ver originalif (e.KeyChar == Convert.ToChar(Keys.Enter)) { MessageBox.Show(treeView2.SelectedNode.Name.ToString()); }