|
-
Apr 1st, 2004, 07:34 AM
#1
Thread Starter
Junior Member
Object reference not set to an instance of an object
I am creating a class which Inherits the TreeNode class and I am creating my own key property within the class.
I can loop round the collection and display MyNewKey for each entry in the collection as below
oSearch = My TreeNode Collection
oChild = Is My Class Containing the Ney TreeNode Key
For Each oChild In oSearch
msgbox oChild.MyNewKey
Next
The problem I am having is I wish to just get data from MyNewKey with the Node which has been selected and not have it in a loop
I have tried several ways to do this and keep getting the error message Object reference not set to an instance of an object.
I reliase that my problem is my new class has to be linked to the treeview control.
Does anybody have any ideas.
Thanks
Daniel
Last edited by DanielBarnes1; Apr 1st, 2004 at 07:42 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|