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.

Thanks


RhinoInfoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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.
0
 
RhinoInfoAuthor Commented:
Edited text of question.
0
 
jgvCommented:
For the max number of nodes you can check out:

http://support.microsoft.com/support/kb/articles/Q182/2/31.ASP?LNG=ENG&SA=PER

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 :)
0
 
RhinoInfoAuthor Commented:
Thank you very much
0
All Courses

From novice to tech pro — start learning today.