How do I save off a value on treenode? I am using C# Windows forms framework 4.0. Is the Tag the only place to save off a value? I need to save off the window name in order to open the window when the user clicks on it.
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.
If you need more than one value to store in the tree node then the best way is to extend
TreeNodeby inherent your class from it, and use your own tree node.Or just the tag and store the windowname in the name.