I hope that I am not abusing this forum by asking particular code
questions like this. I should be asking questions about
using the new help system and I plan to move on to that after I
meet this one deadline. Please inform me of any wrong-doing.
In my VB6.0 app I could iterate all TV nodes using:
but now when I do it with VB.Net the count seems to only reflects the
count of the upper parent nodes ( no children included in count).
I have even tried the following but get the same results:
Thanks
questions like this. I should be asking questions about
using the new help system and I plan to move on to that after I
meet this one deadline. Please inform me of any wrong-doing.
In my VB6.0 app I could iterate all TV nodes using:
VB.NET:
[SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2] idX = 0 [/SIZE][SIZE=2][COLOR=#0000ff]To[/COLOR][/SIZE][SIZE=2] TreeView1.Nodes.Count - 1 '( bounds adjusted for .net here)[/SIZE]
count of the upper parent nodes ( no children included in count).
I have even tried the following but get the same results:
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] myNodeCollection [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] TreeNodeCollection = TreeView1.Nodes
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] myCount [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = myNodeCollection.Count
MsgBox([/SIZE][SIZE=2][COLOR=#800000]"mycount is now: "[/COLOR][/SIZE][SIZE=2] & myCount)
[/SIZE]
Last edited by a moderator: