Controls Property (AControl)

Version 5

 

Returns a contained control object as specified by a given control name or index..

Syntax

[ 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.

Comments


Example

The following statement retrieves a listbox:

obListBox = tabPageUsers.Controls("lbUserGroups")

Applies to

Any control which supports the Container property.

See Also

ControlsCount, Container