I have a tree view which I populate with the titles of nodes, which I then
append the number of child nodes to. For example:
+Root Of The Tree (2)
+Next Level Of The Tree (1)
Third Level (0)
+Another Node (2)
+Something Here (1)
I am a leaf (0)
+Not Much In Here (0)
Now, when label editing, I would like to edit so that when, for example, the
user edits "Another Node (2)", only "Another Node" is in the edit box. I
thought I could use "BeforeLabelEdit" event to catch and modify the label
just before editing and remove the "(2)", but unfortunately, the e.Label
parameter to this event is read only. Is there any native support for this
kind of thing in the TreeView? If not, is my only choice to manually place
a text box over the edit location and do it that way?
Thanks for any hints you can give.
Robin