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:
Sample: View sample in GitHub.