Office中国论坛/Access中国论坛

标题: 求助 [打印本页]

作者: 2pl01    时间: 2009-11-26 17:14
标题: 求助
treeview能不能只做多做几个项级,而不作节点的。同时点击左边的项级按钮右边显示窗体。
作者: aslxt    时间: 2009-11-26 17:33
只要根节点?可以的
作者: 2pl01    时间: 2009-11-27 09:12
那怎么做呀?
作者: 2pl01    时间: 2009-11-27 09:14
能把范例发过来看一看呀?
作者: aslxt    时间: 2009-11-27 12:04
一个窗体,建立一个TreeView控件,命名为TreeView0,事件代码如下:
Private Sub Form_Load()
  Dim nodindex As Node
  TreeView0.Nodes.Clear
  Set nodindex = TreeView0.Nodes.Add(, , "根节点1", "根节点1")
  Set nodindex = TreeView0.Nodes.Add(, , "根节点2", "根节点2")
  Set nodindex = TreeView0.Nodes.Add(, , "根节点3", "根节点3")
  Set nodindex = TreeView0.Nodes.Add(, , "根节点4", "根节点4")
End Sub
作者: 2pl01    时间: 2009-11-27 15:42
谢谢




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3