Get Checked nodes in TreeView

  • Thread starter Thread starter john
  • Start date Start date
J

john

I have a tree view where the user can check any or all of
the nodes. is there a built in way, in the tree view, to
get an array of the checked nodes? or do i have to do a
recursive search through the node graph and check each one
if its checked or not?

Thanks,
John
 
* "john said:
I have a tree view where the user can check any or all of
the nodes. is there a built in way, in the tree view, to
get an array of the checked nodes? or do i have to do a
recursive search through the node graph and check each one
if its checked or not?

I think you will have to enumerate the nodes. As an alternative you can
add/remove the nodes to a collection in the 'AfterCheck' event handler
and enumerate only the nodes contained in this list.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
 
Back
Top