LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a constructor created DotNet Control to a VI

I have a DotNet Windows control that for reasons that I won't go into, needs to be created from a DotNet constructor node.

Now I would like to add this control at a specified position on the front panel of the hosting vi. Can anyone tell me how to do this?

Thanks.

0 Kudos
Message 1 of 2
(2,449 Views)

In LabVIEW .NET controls reside inside of a .NET container. You can't have a .NET control by itself since they're not native LabVIEW controls. There are no "official" methods for inserting a control at run-time. There is, however, a private method that is available called "Load Control From Stream". Since it is private there is no documentation on how this is supposed to be used. This may also be exposed with the scripting API. Not sure.

 

It might be easier to create a wrapper .NET control that behaves in the "normal" way. 

0 Kudos
Message 2 of 2
(2,445 Views)