Example Code

Hide .NET Picture Box at front panel programmatically

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

I want to move the the .NET picture box to the back of the waveform chart. I tried to use "Move Backward" & "Move to back" command under "Reorder" menu bar on the front panel but the .NET picture box always locate in front of waveform chart.

Expected Result:

 

Error Result:

How to Use

There's no way to reorder the .NET picture box in front panel. In simple term, .NET picture box is opened as "new window" , therefore it always be located at the front of the front panel object.

Alternative way is hide the .NET picture box programmatically in LabVIEW by using property node.

  1. Right click Picture box in block diagram. Select Create >> Property Node >> Visible
  2. Right click the property node and select Change All To Write
  3. Create a false constant and link to it

Additional Information

Create a while loop and link false constant at loop terminal. When the VI is running, the .NET picture will be hide until the VI is stopped.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.