I have search lots of pages for this but i have not found then i have tried lots of way then after that i found this amazing code.It is very easy and simple….
tv.GetNodeFromIndex(tv.SelectedNodeIndex).Text.ToString()
here tv is name of the tree view