LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to bring VI Front Panel in Front of All Desktop Windows?

Solved!
Go to solution

Hi,

 

I am referring to following post:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PA7NSAW&l=de-DE

 

It is using GetForegroundWindow and SetForegroundWindow, but the post is saying that this is not compatible for Windows 10.


How can I bring my VI front panel to the front of all desktop windows in Windows 10? Is there an update? Or is there another method to use?

 

 

Thanks and best regards

Tiemo

0 Kudos
Message 1 of 3
(1,444 Views)
Solution
Accepted by topic author Tiemo_Mo

Have you tried "Bring To Front" method in the application class?

LucianM_0-1607171153039.png

 

Lucian
CLA
0 Kudos
Message 2 of 3
(1,397 Views)

If you want to do this even when your app doesn't have focus, you can call the Windows SetWindowPos function, which seems to work in Windows 10. There is a trick, where you need to call it twice and set the window to be topmost and then set it to be notopmost. You would expect setting it to top would work, but it seems not to.


___________________
Try to take over the world!
0 Kudos
Message 3 of 3
(1,378 Views)