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.

it is solved??

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.