An Example of TreeView to Create Parent/Child Nodes with Images
An Example of TreeView to Create Parent/Child Nodes with Images
Rate An Example of TreeView to Create Parent/Child Nodes with Images
(2(2 Vote))
'Place TreeView and ImageControl on the Form
'Add 2 Images in the Imaglist
Private Sub Form_Load()
TreeView1.ImageList = ImageList1
For k = 1 To 10
TreeView1.Nodes.Add , , "PKey" + Str(k), "Parent Node" + Str(k), 1, 2
Next
For j = 1 To 10
For k = TreeView1.Nodes.Count To TreeView1.Nodes.Count + 10
TreeView1.Nodes.Add "PKey" + Str(j), tvwChild, "Ckey" + Str(k), "Child Node" + Str(k), 1, 2
Next
Next
End Sub
Private Sub TreeView1_BeforeLabelEdit(Cancel As Integer)
End Sub
An Example of TreeView to Create Parent/Child Nodes with Images Comments
No comments yet — be the first to post one!
Post a Comment