以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 如何遍历目录树一级节点 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=160055) |
-- 作者:lihe60 -- 发布时间:2021/1/19 9:20:00 -- 如何遍历目录树一级节点 目录树有多级节点,如何只遍历一级节点? For Each nd As WinForm.TreeNode In trv.AllNodes nd.Text = “a” Next
|
-- 作者:有点蓝 -- 发布时间:2021/1/19 9:23:00 -- For Each nd As WinForm.TreeNode In trv.Nodes |
-- 作者:lihe60 -- 发布时间:2021/1/19 9:23:00 -- For Each nd As WinForm.TreeNode In tr.AllNodes If nd.level=0 MessageBox.Show( nd.Text ) End If Next
|