When the user clicks on a tree node, the NodeClick event is launched, where I'm setting a public variable CurrNode to the .index of that node. I'm using this public variable in other places in the code.
Unfortunately, it only works if I explicitly click on a node, and this won't be the case when the form initially loads. What I want to do is simulate the effect of clicking on the first node of the tree, but, naturally, .nodeclick(1) doesn't work.
Is there anyway of "automatically" clicking on the first node at some point?
Unfortunately, it only works if I explicitly click on a node, and this won't be the case when the form initially loads. What I want to do is simulate the effect of clicking on the first node of the tree, but, naturally, .nodeclick(1) doesn't work.
Is there anyway of "automatically" clicking on the first node at some point?