Articles in this section
Category / Section

How to count all checked nodes of WinForms TreeViewAdv?

1 min read

You can get the count for all checked nodes in WinForms TreeViewAdv control by using CheckedNodes property. Refer the below code for your reference.

C#

int checkedCount = treeView1.CheckedNodes.Count;

VB

Dim checkedCount As Integer = treeView1.CheckedNodes.Count

Output:

Get the count of all checked nodes

Sample: View sample in GitHub.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied