Ask a Question

wItemCount problems

New Contributor

wItemCount problems

Hello folks,

I am trying to get the number of nodes that exist within a node.  The application looks like this:

 - Site

 - - 1

 - - 2

 - - 3

I have tried a few different things, but nothing I type in is working and I'm out of ideas.  This code works to expand the Site item:


From what I can tell wItemCount returns an integer, but where would that fit into the ridiculously long string of stuff.things?  

Any help would be greatly appreciated.

Hi Eric,

In case of the Windows Forms tree view, you can try using the native Count property located within the Nodes property. To access subnodes, you can try using the Item property.

Best regards,

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Showing results for 
Search instead for 
Did you mean: