Accessing object properties from a treenode that's associated with it ?

Posted by mhd on Stack Overflow See other posts from Stack Overflow or by mhd
Published on 2010-06-07T04:01:09Z Indexed on 2010/06/07 4:12 UTC
Read the original article Hit count: 267

Filed under:
|

Hallo, I have read http://stackoverflow.com/questions/1880930/easy-object-binding-to-treeview-node, but still have unanswered question.

if an object is associated with treenode tag property, how to access that object members/properties from that treenode ?


node1 = new TreeNode();
node1.tag = object1;
//ex:if object1 has public property valueA
//How to access valueA  from node1 ??

© Stack Overflow or respective owner

Related posts about c#

Related posts about treenode