10-10-2018 05:01 PM
To provide context, I have my main VI that watches for an update to a file driven by operation of a non-labview program, which is why a non-labview program is the frontmost window and I have this issue in the first place. When that file update happens, my main VI calls a sub vi. That sub VI is what I want to be frontmost, over top of the non-labview program. Before I tried anything with the Bring Front Panel to Foreground.vi, the subvi would successfully be called and appear over top of the main VI, but it was still behind the non-labview window. Everything I have tried from this post has not changed that result.
10-10-2018 05:07 PM
Oh wait really? So it still appears over the top of other VIs, but not other non-LabVIEW Windows even on the Windows 7? Huh, I guess maybe it is a problem with being in an executable? Try logging the error wire and see if you notice any errors coming from either of those two nodes.
10-10-2018 05:21 PM
Tried that, neither node produced an error.
10-10-2018 05:27 PM
Sorry, wish I could help you more, but I don't have a non-Windows 10 computer I can test on.
It's an interesting problem though. I hope someday someone will find a solution that works for Windows 10 too, because it seems like it would be a very useful thing.
10-10-2018 05:35 PM
Agreed, thank you for the attempt, I appreciate it!
10-10-2018 07:20 PM
Rather than bringing to the front can you try minimizing/maximizing the LabVIEW application at the appropriate times? That may force it to the front.
10-11-2018 11:02 AM
Attempting to set the window size programatically did not force the window to the front. screenshot of what I tried is below. The numerics listed are the window height and width set in the VI properties.
10-11-2018 11:12 AM
I was not referring to changing the size but literally minimizing (send to the Windows toolbar) and maximize (or show the window again). Another thing would be to try to change if the window is visible or not. that may force it to the front.
10-12-2018 06:15 PM - edited 10-12-2018 06:16 PM
That did not force the window to the front either... The reference in is "This VI". Didn't realize I cut it off when I took the snip.
I also tried making the main VI be minimized and then back to its standard size (using the same set up as above) before calling the sub vi, where the same minimize and standard size call was run, but neither successfully brought the window to the front. Also tried "Maximized" instead of "Standard" with the same result.