装有sp6得: Microsoft Windows Common Controls 6.0(SP6) 装有sp5得: Microsoft Windows Common Controls 6.0(SP5)
是treeview吗?这个怎么用啊,是不是一定要跟ImageList合用才可以?
如果你想有图标显示的话就要ImageList,如果是单纯的文字显示就不用.
不一定啊,像下面的示例就没用。 Private Sub Form_Load() ' Set Treeview control properties. TreeView1.LineStyle = tvwRootLines ' Linestyle 1' Add Node objects. Dim nodX As Node ' Declare Node variable.' First node with 'Root' as text. Set nodX = TreeView1.Nodes.Add(, , "r", "Root") ' This next node is a child of Node 1 ("Root"). Set nodX = TreeView1.Nodes.Add("r", tvwChild, "child1", "Child") End Sub
Microsoft Windows Common Controls 6.0(SP6)
装有sp5得:
Microsoft Windows Common Controls 6.0(SP5)
Private Sub Form_Load()
' Set Treeview control properties.
TreeView1.LineStyle = tvwRootLines
' Linestyle 1' Add Node objects.
Dim nodX As Node
' Declare Node variable.' First node with 'Root' as text.
Set nodX = TreeView1.Nodes.Add(, , "r", "Root")
' This next node is a child of Node 1 ("Root").
Set nodX = TreeView1.Nodes.Add("r", tvwChild, "child1", "Child")
End Sub