Controls Property (AControl) |
Version 5 |
Returns a contained control object as specified by a given control name or index..
[ pobContained = ] Object.Controls( vKey )
The Controls property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
A control |
A control object |
|
vKey |
Variant |
A name or index that identifies a member of a controls contained on the object. |
|
pobContained |
Object |
An object contained in this control object. |
The following statement retrieves a listbox:
obListBox = tabPageUsers.Controls("lbUserGroups")
Any control which supports the Container property.