LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net container hosting in labview

I am having trouble hosting a windows form control in a .NET container in LabView 8.6. The control hosts images from a usb capture device. The image is displayed in a picture box. I created the control in Visual studio using C#. The control uses InteropServices to call avicap32.dll. The container allows me to import the dll, but the picture box does not show up when I run it. I have imported this control into a windows form through Visual studio, and everything is displayed correctly. Has anyone seen this before? Thanks for the help.
0 Kudos
Message 1 of 2
(2,791 Views)

User controls assume they are operating in a Windows Forms, and the .NET container does not provide that. What sometimes works is to set the execution system of the VI to "user thread". You can do this in the VI's Properties window. You may have to resort to using a group box to provide a suitable binding context.

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