Forum Discussion

d4h8a1's avatar
d4h8a1
New Contributor
16 years ago

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:

myApp.Explorer.toolStripContainer1.ToolStripContentPanel.splitContainer.SplitterPanel.browser.treeView.ExpandItem("|Site");



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.

1 Reply

  • 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.