BuddyJoe
BuddyJoe

Reputation: 71111

WinForms TreeView - "Selected Node" indicator

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

Upvotes: 0

Views: 2085

Answers (2)

arul
arul

Reputation: 14084

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

Upvotes: 0

jrista
jrista

Reputation: 32960

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

Upvotes: 8

Related Questions