LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add items to ActiveX Tree Control?

I would like to Programmatically add items to ActiveX Tree Control.
0 Kudos
Message 1 of 4
(3,435 Views)
Hi,
1. I did this work some time ago and posted the example here. But actually I don't remember when. It uses "Microsoft TreeView Control ver.5.0." If you have another version you may need to reload control into ActiveX container. But in any case you will find the idea of how to Add and Remove items into/from different levels of tree. This VI is made under LV 6.0.
yuo can download it from here:
treeview.vi

2.And as far as I know tree control exists in LV7. So change the version and you'll get the easy way to work with them.

Good luck.

Oleg Chtuko.
0 Kudos
Message 2 of 4
(3,435 Views)
Thanks for the response.

But I am unable to load my Tree control.
It displays Control could not be loaded.
Pls advise me what else I need to do.

Thanks
Theju
0 Kudos
Message 3 of 4
(3,435 Views)
Run your code in high light execution mode to see where the error occurs. You will need to hook up your error clusters for this method to be useful. I suspect the problem comes from the first property or method from the reference of the activeX control. If this is the case, you should re-browse to the control by right clicking on the control and choosing to insert a new activex object.
0 Kudos
Message 4 of 4
(3,435 Views)