09-12-2012 07:42 AM
Hi,
I made a dll using Labview 2009 64bit.
It is called by an other application written in C#.
The first time it opens on top of the window of the C# program.
When it is called a second time it is behind this main window.
How can I keep my front panel of the dll always on top??
I tried setting the option model in window appearance, this frooze the main window and the front panel was still behind it.
thanks!
kim
Solved! Go to Solution.
09-12-2012 11:06 AM
Inside the LabVIEW code, use the Front Panel "Open" method (through an Invoke node) to activate the appropriate front panel on each call to the DLL.
09-13-2012 03:36 AM - edited 09-13-2012 03:46 AM
.
09-13-2012 03:46 AM
sorry, forget remark
09-13-2012 06:25 AM
Thanks for you reply, but unfortunately this doesn't work for me.
The front panel is open, but behind the main application.
I should be able to put it on top of all applications...
09-13-2012 12:27 PM - edited 09-13-2012 12:30 PM
Sorry for misleading you, then - I didn't try this in a DLL prior to posting. How about the Application method "Bring to Front"? Does that work for you?
EDIT: and if that doesn't work, try the Windows calls suggested in this post: http://forums.ni.com/t5/LabVIEW/Bring-LabVIEW-built-exe-to-front-on-subsequent-launch-attempts/m-p/2...
09-20-2012 02:38 AM
I think it might be a windows 7 issue...
09-20-2012 09:50 AM
the links helped!
thanks for the help.
Kim