Sorry.

Control Arrays.

According to the value of a NumericUpDown, I need to make Visible and Enable a number of controls. If the number in the NUD is 3, then the first 3 labels, the first 3 textboxes and so on will be visible, while the elements from 4 to 10 will be hidden.



By the way, this NumericUpDown also controls the size of the GroupBoxes and Form too. I'm not too familiar with the code in VB2005, but the migration of an older program shows me this:

Code:
Frame2.Height = VB6.TwipsToPixelsY(1440 + 285 * NZX + 75 * (NZX - 1) + 285)
That "VB6" part is worrying me. Is this the general way to change the size of a general container in 2005?