LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV AUTOMATICALLY CLOSED WHEN i USED LISTBOX ACTIVEX CONTROL METHOD

When I using activex control i.e microsoft forms 2.0 Listbox method "AddItem", LV automatically closed. But it is not happen when I used its property such as "backcolor". Please tell me how to solve this problem
0 Kudos
Message 1 of 8
(3,288 Views)
I can change the backcolor in listbox by condition.
(
Green:betwen Min and Max
Red: Out the range
)
Download All
0 Kudos
Message 2 of 8
(3,288 Views)
I think u do not answer my question
I ask why LV automatically closed when I used method of microsoft forms 2.0 activex listbox. But this not happen when i used the property of the listbox activex
Download All
0 Kudos
Message 3 of 8
(3,288 Views)
Hi Due,

Here's what I tried and it all worked well on my computer:

1) File >> New VI
2) Placed an Automation refnum control on the front panel.
3) Right-click on the refnum >> Select ActiveX class >> Browse >> Microsoft Forms 2.0 Object Library version 2.0 >> ListBox
4) Place an invoke node on the block diagram. Select "Add Item".
5) Wire numeric data to the input of the method.

Please follow these steps and let me know how it goes.

Sincerely,
Feroz
National Instruments
0 Kudos
Message 4 of 8
(3,288 Views)
Hi FerozP:
I've try it, it will closed by itself when I run it.
0 Kudos
Message 5 of 8
(3,288 Views)
Boone,

I have tried it as well. When I ran his VIs from the other posting LV AUTOMATICALLY CLOSED..., LabVIEW did crash. However, when I followed the steps above, it worked fine. I have attached the VI.

Feroz
Message 6 of 8
(3,288 Views)
can u attached LV lower version, I mean 6.1 because I only have this version.

Thank u very much for reply my question
0 Kudos
Message 7 of 8
(3,288 Views)
Hi Due,
I have attached the VI for LabVIEW version 6.1. If this VI doesn't work on your computer, try using another program like visual basic and see if this method works for the activeX control. It could very well be that your activeX control is not functional.

I hope this helps.

Sincerely,
Feroz
0 Kudos
Message 8 of 8
(3,288 Views)