Ho to count the related children based i click on a plus sign?
image 1
click on plus sign NORD-OVEST, count 4 regions
image2
click on plus sign PIEMONTE, count 8 provinces
image3
click on plus sign ASTI, count 38 comuni
I hope you understand me....
COUNT element on a click plus sign
-
- PlatinumLounger
- Posts: 4497
- Joined: 26 Apr 2010, 17:36
COUNT element on a click plus sign
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 79444
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: COUNT element on a click plus sign
Code: Select all
Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
Dim ChildCount As Long
ChildCount = Node.Children
MsgBox "The selected node has " & ChildCount & " children"
End Sub
Best wishes,
Hans
Hans