LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bring sub vi to front of all windows

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.

0 Kudos
Message 21 of 29
(1,280 Views)

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.

0 Kudos
Message 22 of 29
(1,278 Views)

Tried that, neither node produced an error.

0 Kudos
Message 23 of 29
(1,274 Views)

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.

0 Kudos
Message 24 of 29
(1,272 Views)

Agreed, thank you for the attempt, I appreciate it!

0 Kudos
Message 25 of 29
(1,270 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 26 of 29
(1,257 Views)

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.

Capture.PNG

0 Kudos
Message 27 of 29
(1,242 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 28 of 29
(1,239 Views)

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.
Capture1.PNG

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.

0 Kudos
Message 29 of 29
(1,226 Views)