LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I setup an ActiveX textbox in Labview?

I want to setup an ActiveX container on my front panel containing ActiveX control "Microsoft 2.0 Forms TextBox" because it supposedly allows horizontal and vertical scrollbars (regular LabView text indicators only allows vertical scrollbars). I brought up the "Property Browser" (by right clicking on the ActiveX Container) and attempted to make both scrollbars appear (ScrollBars set to "fmScrollBoth"), but no scrollbar appears.
 
Next, I try programmatically setting both scrollbars my specifying both scrollbars in the Property Node (in the block diagram), but when I run it, I get the following error:  "Error -1073741819 occurred at Property Node...".
 
Does anybody have sample VI that properly sets up Microsoft textbox?
0 Kudos
Message 1 of 5
(3,567 Views)
hi there
 
the scrollbars only appear when the text you enter is large enough. search your file system for fm20.chm or fm20.hlp for more information (start your search at ..\program files\microsoft shared\vba).
 
i also get the error Error -1073741819 when trying to set the property at run time.
 
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 5
(3,559 Views)
Go ahead and post the code that generates the error. I was unable to reproduce it with LabVIEW 7.1.1.
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 3 of 5
(3,549 Views)

hi there

here's some code. another funny behaviour occured: when i save, close and reopen the vi the TextBox is invisible! and i can't bring it on the screen again! you have to create a new container by yourself!

what version of fm20.dll do both of you got?

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 5
(3,539 Views)
So the good news is that I was able to reproduce the unusual "disappearing" act that you are seeing with the ActiveX container. The bad news is that I don't have an immediate fix for the problem other than to suggest using something other than a MS Form control to accomplish what you're looking for. The text box in LabVIEW will probably accomplish what you're looking to do.
 
Let me express my apologies for the error as well as my thanks for your discovering it. We certainly appreciate your time and effort in reporting errors because it helps us make LabVIEW a better product.
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 5 of 5
(3,522 Views)