Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make multiple controls automatically grow when the parent form is resized?

Hi, All,
 
What I want is that all controls (buttons, graphs, labels, etc.) can be automatically grow when the parent form is resized (maximized or minimized). I tried Anchor property and it didn't work. Anyone knows how to do it?
 
Thanks,
 
Larry
0 Kudos
Message 1 of 2
(2,956 Views)

Hi Larry,

The behavior you're looking for is the Anchor property associated with each control on the form. However, you need to make sure and set that property to be using the top, bottom, left and right fields. See the attached screenshot as an example. After settings this property, you will be able to expand your form and have your button adjust.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(2,946 Views)