i want to count to number of nodes under each root node so i m doing so
Code:
Dim n As Integer
 For Each RootNode As TreeNode In treeAlbum.Nodes
  n = RootNode.Nodes.Count
  Next
  MessageBox.Show("nodes " & n)
it is counting number of nodes but not exact,some time it is showing more nodes and some time it is showing less time.
plz help me
------------------------------------------------