Hi!
I'm creating an app witch has a TreeView control named TVC.
At some point I will need to save my app data to a file. My problem is I can't go through all TVC nodes to store them in a file.
I can only access the first set of childnodes in the control. To get over this I started to think of another way of doing this and I came up with this:
The code above allow me to store information from the first and second nodes but I will have to limit my controll to a number of sub child nodes.
Can anyone give me a help on this...
Thanks
(I'm using VB.NET for a week. I was used to work with VB6)
I'm creating an app witch has a TreeView control named TVC.
At some point I will need to save my app data to a file. My problem is I can't go through all TVC nodes to store them in a file.
I can only access the first set of childnodes in the control. To get over this I started to think of another way of doing this and I came up with this:
Code:
Dim a, b
For a = 1 To TVC.Nodes.Count
MsgBox(TVC.Nodes.Item(a - 1).Text)
If TVC.Nodes.Item(a - 1).Nodes.Count > 0 Then
For b = 1 To TVC.Nodes.Item(a - 1).Nodes.Count
MsgBox(TVC.Nodes.Item(a - 1).Nodes.Item(b - 1).Text)
Next
End If
Next
The code above allow me to store information from the first and second nodes but I will have to limit my controll to a number of sub child nodes.
Can anyone give me a help on this...
Thanks
(I'm using VB.NET for a week. I was used to work with VB6)
Last edited: