Hi,
The node is created just fine. It's just not automatically shown, because it's parent node is closed. If you'd double click on it, it would open, and the child node would show.
This is exactly how it is in e.g. explorer. All children are hidden until the parent node is opened. To check this simply put a long wait in the vi (e.g. 10000 ms), and double click the parent node. The child will show.
You can also wire a property node to the parent reference (coming out of "Add"), and set it's property "Expanded" to true.
Please note you have to close all references, even if you are not done with the tree. You should close the two references coming out of "Add", and the reference "Nodes". If not, you'll get a memory leak.
Regards,
Wiebe.
"Kenneth.Miller" <x@no.email> wrote in message news:1147725608012-365417@exchange.ni.com...
Hello, I am attempting to use the MS Treeview 6.0 ActiveX control in Labview 7.1. I'm trying to do something as simple as creat a parent ("Test") and a child ("Test2"). The problem I am encountering is that the child does not appear when the VI is run, only the parent does. If you hit Save (Ctrl-S) while the VI is running the child will then appear. I do not understand this behaviour. Thanks for any help, the VI is posted in this thread.
Test23.vi:
http://forums.ni.com/attachments/ni/170/184966/1/Test23.vi