Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Great answer thanks. Note that this only works if HideSelection is True (the default) Commented May 30, 2018 at 7:15
  • 2
    Great answer, thanks! However, it does not work if the selected node is changed (via code) while the tree view is unfocused. This can be fixed by using events BeforeSelect and AfterSelect. Commented Jan 29, 2020 at 16:13
  • The easiest and best-working solution, if combined with the suggestion of @Joh. Commented Feb 17, 2021 at 22:10