10-23-2015 05:10 AM - edited 10-23-2015 05:11 AM
Greetings All,
I wanted to place few .NET containers(loaded with controls) and few LabVIEW controls/decorations above the .NET controls. But I am not able to move(using move to front/move forward) the LabVIEW controls/decorations in front of .NET containers. Please suggest some way to do this.
Thanks in Advance,
Sree
10-23-2015 05:16 AM - edited 10-23-2015 05:16 AM
Did you already try the 'bring to front' option on the LabVIEW controls?
If that doesn't work, it might not be possible (perhaps the .NET controls go on a different 'layer').
10-23-2015 05:17 AM - edited 10-23-2015 05:28 AM
Yes Sam, I have already tried it.
Is there any way to change this behavior?
10-23-2015 05:47 AM - edited 10-23-2015 05:48 AM
No, if that doesn't work, I don't think it's possible. (There's a similar thread here with no solution either: http://forums.ni.com/t5/LabVIEW/Move-to-back-quot-iwebbrowser2-quot-Possible/td-p/1440874 )
It's a good idea to post over on the ideas exchange if it isn't already there, though!
10-23-2015 06:00 AM - edited 10-23-2015 06:05 AM
@Sam_Sharp wrote:
(perhaps the .NET controls go on a different 'layer').
Yes, it's actually a child window.
One thing which might work is placing the .NET container in a subpanel, but I'm pretty sure that also ends up simply being a child window of the calling VI and you get the same behavior.
It might be possible to make this work by setting your own VI as child windows, but you would have to do that at runtime and control transparency, etc. I would say it's not worth it.
10-23-2015 10:10 AM
It's generally a bad idea to overlay things on the front panel for performance reasons. Just a heads up
10-26-2015 05:47 AM
What happens if you put a .NET container on a tab control? Does LabVIEW then show/hide the child window?
06-16-2016 07:01 AM
Well OP crossposed over on reddit where he found his solution was to put a .Net container infront of a .Net container.
https://www.reddit.com/r/LabVIEW/comments/4oaene/nothing_can_be_in_front_of_a_net_container_well/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-11-2017 07:51 PM
not sure about .NET containers, but for tab control you can place LabVIEW controls over the container just by:
not the most elegant but it worked for me for tab control
BTW, I used it for tabbed string indicator.
can anyone try it on the .NET container and tell if it works?
01-12-2017 07:47 AM
@cyfoo wrote:
not sure about .NET containers, but for tab control you can place LabVIEW controls over the container just by:
Great suggestion. I've used this technique with LabVIEW controls before plenty of times but was unsure how it would work in a tab control. The result is still useful, but not for putting controls on top os a .Net control.
If you place a .Net control in a tab it behaves like you'd expect. When you are on one tab the control is shown, when you are on the other it is hidden. The odd bit if if you place a control on top of that tab. Normally a control on top of a tab is on top of all control in that tab. But in this case the .Net control is in the tab will appear on top of any control, even ones on top of the tab itself.
Another technique also fails and that is using a subpanel. If you place a .Net control in a VI that is in a tab, and you put a control on top of the tab, which should be on top of the subpanel, which should be on top of the .Net control...but it also isn't.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord