以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何遍历树的每个节点  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=64657)

--  作者:newsun2k
--  发布时间:2015/2/26 16:36:00
--  如何遍历树的每个节点
Dim trv1 As WinForm.TreeView = e.Form.Controls("TreeView1")
For Each nd As WinForm.TreeNode In trv1.Nodes
’代码
next
这个语句并不能遍历一个树的所有节点啊,子节点访问不到。
有什么好的办法吗?

--  作者:Bin
--  发布时间:2015/2/26 16:37:00
--  
trv1.ALLNodes