This VI will programmatically move a window to the front whether its a LabVIEW window or not.
This VI will programmatically move a window to the front whether its a LabVIEW window or not. There are two Windows APIs that are used to achieve this. The first one (FindWindow) acquires the handle of the window that you want to bring to the front.The name of the window is passed into the lpWindowName terminal and NULL is passed into the lpClassName terminal. The second windows API is SetForegroundWindow. This moves the window corresponding to the passed handle to the front.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Open the VI "Bring Window Forward_LV2012_NI Verified"
2. Choose the window name you want to bring to front 3. Run the VI 4. Stop Execution
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**