0

I am trying to add child nodes to a Treeview list, I have the parent node and this is the code I have to add the child node:

parentNode = New TreeNode()
        parentNode.Text = Me.headerSelect.Text.ToString
        parentNode.Nodes.Add(Me.fieldName.Text.ToString)

It doesn't do anything - no errors, no adding, nothing.. Also if it is possible, could I store an array of values in a treeview? I am writing a program that will create a database and I need to store the field name, data type, and default value all together as the user inputs them, and this would be easiest in an array - so if I can store that kind of information in a treeview I would appreciate a point in the right direction.

2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by Mr.Wobbles
0

I solved it myself, and since this happens to me often, I have stopped posting how I did it..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.