From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-19-2010 11:34 PM
I need to programmatically force my LabVIEW application to become frontmost on a Windows system. Basically I want it to punch through any currently open application windows and become the main active app.
What I've tried:
So, is there any way to do this?
07-20-2010 04:57 PM
Mike, I'm trying to do the same thing, only I want to make a VI which is run via Call By Reference from a remote application instance always on top with key focus. I can get always on top to work like you did in your cross-post, where I call SetWindowPos twice (once with hWndInsertAfter = -2 and again with it = -1).
Then, I get two "active" windows and the wrong one (launching application) has key focus. SetFocus, SetActive, etc. seem to be no help whether I call them before or after SetWindowPos. SetForegroundWindow just makes it blink 3 times, like you had experienced...
Any Ideas?
07-21-2010 01:23 PM
See here for solution to my question.
07-22-2010 11:58 AM
Ok that last link got mangled. Here is the solution.
01-14-2011 11:08 PM