hooovahh Posted February 4, 2013 Report Share Posted February 4, 2013 I'm looking for a way to get the HWND (handler window) of a front panel. The trick to this is I want to get this handle on a window without the VI running. The reason for this is I want to bring the VI to open the front panel and bring it to the front of all applications. The only way I know to do this is using a windows call using the HWND of the window to bring to the front. In the past I would get the VI's Front Panel Title (using the VI ref and property node) then get the HWND using this title. Problem is that is the title of the window when it is running. A possible solution is to attempt to figure out what the title of the window will be in the IDE then get the HWND of that. So is there any suggestions on how to bring a VI to the front of all windows, without running that VI? Attached is a test that shows the code working if the VI is running, and doesn't work if it isn't because the title is different. Bring to Front Test.zip Quote Link to comment
hooovahh Posted February 4, 2013 Author Report Share Posted February 4, 2013 Sorry to waste anyone's time. After I posted this I continued my search and I found this private property that works. http://lavag.org/topic/13803-getting-the-window-handle-for-a-fp-with-no-title-bar/ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.