ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create .net class derived from treenode

Hello,

I try to create a .NET TreeView on the front Panel. I want to attach a Combobox to some child nodes - that works fine in C#. But I have no idea, how to create a new .net class in labview, which inherits all properties / methods of a base class (now TreeNode).

 

Is it at all possible in LabVIEW?

InheritedClass_TreeNode.PNGInheritedClass_TreeNode.PNG

 

0 Kudos
Message 1 of 2
(3,220 Views)

It is not possible at all currently. LabVIEW can host some .NET assemblies and classes and instantiate them (within certain limitations), creating object instances and calling methods/properties/receiving events but you cannot create new C# classes or create any new IL targeted to the .NET CLR.

 

If you want to do this and host the result inside a LabVIEW .Net container on the front panel you could most likely do so (using the C# IDE of your choice). Alternatively you could program a similar look and feel as Windows Forms but using LabVIEWs native controls.

0 Kudos
Message 2 of 2
(3,170 Views)