Showing results for 
Search instead for 
Did you mean: 

Minimizing the application (all open windows)

Go to solution



I have an application that has more windows (W1, W2, ..., Wn) where W1 calls W2, W2 calls W3 and so on (when Wn is open Wn-1 can not be accessed). I want to minimize all windows when user minimizes Wn. How can I do this? I could use references to all previous windows and minimize them using invoke node, but I don't like this method. Is there any other way to do this? Maybe on the application level?



0 Kudos
Message 1 of 7

If you are using MS Windows, you can use Windows API to do this.

Just find the "labview" window, and minimize it.  All LabVIEW windows will be minimized.


George Zou
0 Kudos
Message 2 of 7

How can I find "labview" window or all labview windows. I have tried minimizing using the VI name, but it minimizes only the top window, other labview windows are not minimized.

0 Kudos
Message 3 of 7
Accepted by topic author andrej



I have an app that has more than one front panel open at the same time, it does create some issues somtimes, for instance when you "alt-tab" through the open windows in Windows.

To minimize all my Vi's front panel at the same time, there is a button on the main VI, when the user hits it I use this VI (attached) to minimize all the opened FP.


I'm sorry it's not documented, but basically you have to place it in the main VI of your app and pass in the ref of the main VI, when run, it take take the ref of all the VIs in memory that have their front panel open, minized all of them and old their ref in  the array that's in a shift register and then it wait for the main VI to be opened by the user and then re-displays all other FP that were opened.


Hope this helps

We have two ears and one mouth so that we can listen twice as much as we speak.


Antoine Chalons

0 Kudos
Message 4 of 7

Thank you. Actually I did similar VI, but I was hoping that there is some other solution where I don't need to pass a parent VI reference to a subVI.

0 Kudos
Message 5 of 7

What's wrong with doing it per VI?


0 Kudos
Message 6 of 7

Well I don't know how Andrej's application is architectured but is he has independant processes that have different FP and if he want to minimizse all the app's FP when one of them is minimized he can't use your VI.

Maybe your VI would be fine... I just posted the VI I'm using for my project in case it can help Smiley Wink

We have two ears and one mouth so that we can listen twice as much as we speak.


Antoine Chalons

0 Kudos
Message 7 of 7