I have a treeview which contains, per node, a key and text. However, there is a third piece of information I would like to attribute to each node. What is the cleanest way of doing this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Tag attribute exists for just this purpose. You can store data of Variant type in each tree
Node‘sTagproperty.Otherwise, create a reference to “Microsoft Scripting Runtime” and use a Scripting.Dictionary object to associate the extra data with your tree keys.