views:

674

answers:

2

What is the best way to leave some indicator of which TreeNode is selected in a TreeView on a WinForm?

+6  A: 

Disable the HideSelection flag on the TreeView control. By default, the selected node highlight is hidden when the control looses focus.

jrista
Why would they turn that off by default. weird.
tyndall
+1  A: 

Checkboxes, or if you want a less invasive way you might try just changing the node's background.

arul