G
Guest
Hi,
I'm using the tag property of the Treenode object to store an string array
containing some values. I can assign it to the Tag but when I try to retrieve
values from it I get an error: "Object reference not set to object"
This is what i'm doing below:
// retrieve the array from the treenode tag property
memberInfo = (string[])tn.Tag;
// Try to display the first element. Get error here.
Debug.Assert(false,memberInfo[0]);
What is causing this error?
Any ideas are appreciated
Thanks very much in advance
Ant
I'm using the tag property of the Treenode object to store an string array
containing some values. I can assign it to the Tag but when I try to retrieve
values from it I get an error: "Object reference not set to object"
This is what i'm doing below:
// retrieve the array from the treenode tag property
memberInfo = (string[])tn.Tag;
// Try to display the first element. Get error here.
Debug.Assert(false,memberInfo[0]);
What is causing this error?
Any ideas are appreciated
Thanks very much in advance
Ant