rfresh
Active member
- Joined
- Aug 23, 2012
- Messages
- 26
- Programming Experience
- 1-3
I have some c# code below where I am creating a treeview.
I want to add an image to each node but am not sure of the syntax to do that?
I have an imageList assigned already to my treeview.
Thanks for any help...
I want to add an image to each node but am not sure of the syntax to do that?
I have an imageList assigned already to my treeview.
Thanks for any help...
C#:
[COLOR=#2E3133]treeView1[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Add[/COLOR][COLOR=#2E3133]([/COLOR][COLOR=#6B291B]"Woods"[/COLOR][COLOR=#2E3133]);[/COLOR][COLOR=#2E3133]
treeView1[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Add[/COLOR][COLOR=#2E3133]([/COLOR][COLOR=#6B291B]"3mm"[/COLOR][COLOR=#2E3133]);[/COLOR][COLOR=#2E3133]
treeView1[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Add[/COLOR][COLOR=#2E3133]([/COLOR][COLOR=#6B291B]"Plywood"[/COLOR][COLOR=#2E3133]);[/COLOR][COLOR=#2E3133]
treeView1[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133][[/COLOR][COLOR=#6B291B]0[/COLOR][COLOR=#2E3133]].[/COLOR][COLOR=#2B91AF]Nodes[/COLOR][COLOR=#2E3133].[/COLOR][COLOR=#2B91AF]Add[/COLOR][COLOR=#2E3133]([/COLOR][COLOR=#6B291B]"Cutting"[/COLOR][COLOR=#2E3133]);[/COLOR]