swaybright
Technical User
I have an treeview control on my form and I am working on coding specific actions when nodes are clicked using the .HitTest(x,y) function. The problem I am having is when I single click (right or left) on a node that has children, the treeview control automatically expands the node so the viewer can see the children--a nice feature except that it also contracts any other nodes that are not in that node hierarchy. This expansion/contraction seems to occur before the MouseUp event I am using to trigger my command bar containing my actions the user can select to manipulate the node. Thus, the .HitTest function no longer returns the information from the clicked node since the nodes shift due to the automatic contract of nodes above it.
Does anyone know how to turn off the auto contract feature? Or do you know an effective work around?
Thanks!
Does anyone know how to turn off the auto contract feature? Or do you know an effective work around?
Thanks!