HI,
I need to add an image (icon) to the treeview from VB6 using vb.NET.
I do this in an procedure (formatNode) where I pass the treeview by reference.
But I always get errors. Can somebody help me with this.
Code:Private Sub formatNode(ByRef control As AxMSComctlLib.AxTreeView) With control.Nodes.Item(myNodeCount) 'grab the current node .Expanded = True 'expand the node '.Image = ????? (please help !!!!) End With End Sub




Reply With Quote