[RESOLVED] Treeview. Click / Afterselect troubles
Hi; I'm having some trouble with coding my treeview in VB.NET
I have the following subs in place;
Treeview1_MouseUP(ByVal etc etc etc)
Treeview1_Afterselect(Byval etc etc etc).
Now; The problem is, MouseUp should really be executed after selection.
For example; Situation is:
~Parent
~~~Child1
~~~Child2
Currently Child1 is selected.
I RIGHTCLICK child2. I want the 'MouseUp' event to reference to Child2 at that moment in time. But Treeview1.selectednode still refers to child1 :sick: .
How do I get 'Treeview1_MouseUP' to see Child2 as the 'active item' instead of Child1?
Thanks!
Re: [2005] Treeview. Click / Afterselect troubles
TreeView.GetNodeAt(e.X, e.Y)
Re: [2005] Treeview. Click / Afterselect troubles
Works like a charm! Thanks a lot! :wave:
Re: [RESOLVED] Treeview. Click / Afterselect troubles
Just note that you should allow for the situation where the event occurs at a point where there is no node.