I'm trying to implement a fairly simple Treeview procedure but running
into problems.
My Treeview has just two levels of nodes: top-level and one child
level. I want a doube-click on the Treeview to do one of two things:
If the double-click was on a top-level node then the default action of
exapnding/collapsing the node should be allowed as usual and with no
further action.
If the double-click was on a child-node then I want to be able to pick
up the text of the child item that was clicked (ie the selected item).
(And if the double-click was on neither then just ignore)
The problem is how best to distinguish between the top- and
child-level clicks.
I'm obviously looking to place some code in the Treeview's doubleclick
event but the eventargs of this event don't AFAICS return anything
useful.
Any pointers much appreciated.
JGD