LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to bring another application window to foreground

In my CVI application I have a menu bar item in the main window that starts up Internet Explorer to display help information (in html form). If I subsequently click on this item again without closing IE I get a second instance spawned (and so on..). What I would like to do is to be able to detect if IE is already up and running, and if so rather than launch it again, just bring the existing instance to the foreground. Any suggestions how I can do this?
0 Kudos
Message 1 of 2
(2,999 Views)
Are you using CVI 6.0? If so, there is an easier way. You can embed a Internet Explorer ActiveX control in a CVI panel to display HTML. Then it would be easy to control the panel and bring it to the top (SetActivePanel). If not, then hopefully you are doing this through ActiveX Automation of internet explorer. If so, you can bring the IE window to the top just by setting the visible property to true. See the example programs cvi\activex\ie\iedemo.prj (ActiveX Automation), and cvi\userint\activex\webbrowser.prj (ActiveX control).

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,999 Views)