how to add a icon with index 1 from imagelist1?
here
Set NODMARE = .Nodes.Add(Key:=TIPO_STRUTT, Text:=TIPO_STRUTT)
and here
Set NODCHILD = .Nodes.Add(Key:=INDICE, Relative:=TIPO_STRUTT, Relationship:=tvwChild, Text:=INDICE)
ADD icon on root treeview
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: ADD icon on root treeview
Set the Style property of the TreeView control to 7 - tvwTreelinesPlusMinusPictureText.
Set NODMARE = .Nodes.Add(Key:=TIPO_STRUTT, Text:=TIPO_STRUTT, Image:=1)
Set NODCHILD = .Nodes.Add(Key:=INDICE, Relative:=TIPO_STRUTT, Relationship:=tvwChild, Text:=INDICE, Image:=1)
Set NODMARE = .Nodes.Add(Key:=TIPO_STRUTT, Text:=TIPO_STRUTT, Image:=1)
Set NODCHILD = .Nodes.Add(Key:=INDICE, Relative:=TIPO_STRUTT, Relationship:=tvwChild, Text:=INDICE, Image:=1)
Best wishes,
Hans
Hans