I solved it like this by calling the method
treeDirectory.SelectedNode.FullPath
treeDirectory component is part of System.Windows.Forms.TreeView
private void treeDirectory_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
string path = pathDirectory + treeDirectory.SelectedNode.FullPath + "\\";
<other code>
}
}
note: as I declare the question solved ?