ActiveControl Property

Visual Studio .NET 2003

References the active control on an object. Not available at design time; read-only at run time.

Object.ActiveControl.Property[ = Value]

Property Values

The property to return or set.
The current or new property value.


This property is not available if all controls on the specified object are invisible or disabled.

If the object is active, the ActiveControl property references the control that has the focus. If the object is not active, an error occurs.

See Also

ActiveForm Property

Applies To: Container Object | Form Object | Page Object | _SCREEN | ToolBar Object