Evaluation support > Evaluation Questions

Selected node text color.

(1/1)

Michal Bandrowski:
What is the most efficient way to change selected node text color ? Actually I don't see any 'fore color' property in SelectedNodeStyle or other places.

Ruslan:
Plase use properties of the tree.Colors.Text collection. Do define selected node fore color use this code:Code: [Select]>>>>tree.Colors.Text.EnabledSelected = Color.Red;
tree.Colors.Text.EnabledSelectedInactive = Color.Red;<<<<
Second line defines selected node fore color for inactive (not focused) treeview.

Navigation

[0] Message Index

Reply