How to get a list of all child nodes in a TreeView in .NET

后端 未结 10 1100
抹茶落季
抹茶落季 2020-12-15 21:28

I have a TreeView control in my WinForms .NET application that has multiple levels of childnodes that have childnodes with more childnodes, with no defined depth. When a use

10条回答
  •  星月不相逢
    2020-12-15 21:48

    nodParent As TreeNode
    'nodParent = your parent Node
    tvwOpt.Nodes.Find(nodParent.Name, True)
    

    Thats it

提交回复
热议问题