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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 :)
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RhinoInfoAuthor Commented:
Thank you very much
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.