Max nodes for TreeView control

What is the maximum number of nodes I can define with the Microsoft TreeView control?

Is this maximum based on a number of Nodes or an amount of Data?  

I currently use the TAG property to store some descriptive information so I am concerned not only with some Node count limit but any data size limitations.


Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

jgvConnect With a Mentor Commented:
These are excerpts from the vb help. It would seem, based on the amount of data that I was able to assign to the Tag of a node, that it is a variable-length string.

object.Tag [= expression]

The Tag property syntax has these parts:

"object"  An object expression that evaluates to an object in the Applies To list.

"expression" A string expression identifying the object.  The default is a zero-length string ("").


There are two kinds of strings: variable-length and fixed-length strings.

A variable-length string can contain up to approximately 2 billion (2^31) characters.

A fixed-length string can contain 1 to approximately 64K (2^16) characters.
RhinoInfoAuthor Commented:
Edited text of question.
For the max number of nodes you can check out:

I dumped the contents of a 1.3meg text file into a node's tag, no problem. I can't tell you for sure what the max is but I wouldn't think that you would want to exceed this. It wouldn't take long to run out of memory :)
RhinoInfoAuthor Commented:
Thank you very much
All Courses

From novice to tech pro — start learning today.