09-19-2013 11:52 PM
Hello all,
I have a question regarding .NET controls - is it possible to programatically resize the container that the control resides in? It seems that when you wire up a .NET container, all that are available are the properties associated with the .NET control which resides in the .NET container and not the container itself.
Thanks, Matt
Solved! Go to Solution.
09-20-2013 12:58 AM
If you right click on the container on the front panel and select create property node, you should find Countainer Bounds->Height and Container Bounds->Width properties.
Regards,
Marco
09-20-2013 08:51 AM
Thanks, Marcus. But as it says above - programatically. I essentially want the ability to edit the size and placement of the control in the run time environment.
Cheers, Matt
09-20-2013 09:15 AM
Are you trying to add the control at runtime? The .net container cannot do that per se, the .net container is a LabVIEW placeholder that allows you to right-click and select the control to be added at design time. However, you can add a panel to the container at design time, then dynamically add the controls at runtime. I gave a presentation on using .net in LabVIEW at our local user group a while back. Here is a link to the write up about it. It includes my slides and code showing the use of a .net panel to dynamically create controls.
09-23-2013 01:00 AM - edited 09-23-2013 01:01 AM
Hi Matt,
following the suggesiton in my previuos post you will create a property node that can be used runtime.
Regards,
Marco
10-22-2013 03:39 PM
Hmmmm...why is that so hidden. Thanks a lot Marco. I actually didn't use this approach, but it is very nice to know this is there. I am probably missing something but it seems like this is hidden. Cheers, Matt