I want to set treeView.selectedNode programlly in C# and I want to be occured the beforeSelect event while proccessing this assigning. but my question is what I describe below:
when I use the code bellow, the beforeSelect event occured and call it's function.
this.treeView1.SelectedNode = treeView1.Nodes[Level1Index];
this.treeView1.SelectedNode=treeView1.SelectedNode.Nodes[Level2Index];
but when I use such as bellow It doese'nt occure.
this.treeView1.SelectedNode = treeView1.Nodes[Level1Index].Nodes[Level2Index];
why?