The Controls collection uses the controls' names as keys. You can use that to get a control and access its properties using its name.
Normally you wouldn't bother, you would just set the control's properties. However, you may need to find a control using a name entered by the user, calculated, or otherwise unknown at design time.
The following code displays the captions of three controls, two of which are in a control array.
|