To download NI software, including the products shown below, visit ni.com/downloads.
1. Overview
This example shows how to make a VI invisible and off the taskbar when the user minimizes it.
2. Description
Using an event structure, we monitor for the Panel Resize event which is fired when the user changes the size of the panel in any way, including minimization. Then, using property nodes we control the transparency of the VI. We also modify the "Minimizable" property in order to remove the VI from the taskbar. A timeout event makes the VI visible again so the user can stop it.
If the user minimized the window, we return it to the Standard size using a property node. Then we use two properties to make the VI invisible: Run Transparently and Transparency. The first allows for the VI to have a transparency, while the second sets the level of transparency. When set to true and 100, respectively, they make the window invisible. Finally, we use the Minimizable property to remove the VI from the taskbar (false = not in the taskbar).
3. Requirements
4. Steps to Implement or Execute Code
5. Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Why does the vi disapear from the taskbar when going invisible? I thought the transparency only effected the front panel? also is there an easy way to make a tray icon for the vi when it is 100% transparent? So you could add menu control to a tray icon and reopen the vi.
I found an example once for tray icons but the code was buggy and caused the application to crash. I was hoping a tray icon vi would be built into labview Maybe i will suggest it at www.ni.com/ideas