I have a treeview in windows form. When I Left click a node in the treeview e.Node is showing correct value but when I right click the same node, e.Node is showing parent node value in the trreview Afterselect event. What could be the reason and how can I get the actual node even at Right click?
private void trView_AfterSelect(object sender, TreeViewEventArgs e)
{
//e.Node is parent Node at Right click
//e.Node is correct node at Left Click
if (e.Node.IsSelected)
{
}
}