Is it possible to disable the option to get into “Rename” mode when clicking on a tree-node?
I don’t want to disable renaming completely, only to not allow doing it by clicking on the node.
Is it possible to disable the option to get into Rename mode when clicking
Share
You’ll have to turn the LabelEdit property on and off as needed:
Beware that this has side effects, the LabelEdit property is a style flag for the native Windows control. Changing it requires completely destroying the window and re-creating it from scratch. The most visible side-effect is a small flicker when the window redraws itself after getting created. There could be other ones, I didn’t see anything go wrong myself.