Ask a Question

wItemCount problems

d4h8a1
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:

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 1

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,
Alexey

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