以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]如何实现TreeView赋值并展开赋值节点 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=194186) |
-- 作者:小美菜 -- 发布时间:2024/11/16 15:00:00 -- [求助]如何实现TreeView赋值并展开赋值节点 能否实现TreeView赋值,并展开赋值节点位置,编写好与FullName(FullPath)格式相同字符串,并赋值给FullName(FullPath) |
-- 作者:有点蓝 -- 发布时间:2024/11/16 16:07:00 -- Dim FullName As String = "父节点1\\父节点2\\子节点" For Each n As WinForm.TreeNode In tr.AllNodes If n.FullName = FullName Then tr.SelectedNode = n n.EnsureVisible Exit For End If Next |