Hi,
I double checked, your scenario and when the SelectedNode is set regardless of its hierarchy, it always trigger the BeforeSelected event.
It is most likely that the
treeView1.Nodes[Level1Index].Nodes[Level2Index];
is null. if it is null then the node will not be selected and so the BeforeSelected event will not be triggered.
Regards
Jegan