Share via


AutoActivate Property

Determines how an OLE Container control can be activated. Available at design time and run time.

Control.AutoActivate[ = nValue]

Property Values

  • nValue
    The settings for the AutoActivate property are:
    Setting Description
    0 Manual. The control isn't automatically activated. You can activate a control programmatically using the DoVerb method.
    1 GotFocus. If the control contains an object, the application that provides the object is activated when the control receives the focus.
    2 (Default) DoubleClick. If the control contains an object, the application that provides the object is activated when the user double-clicks the control or presses ENTER when the control has the focus.
    3 Automatic. If the control contains an object, the application that provides the object is activated based on the object's normal method of activation (when the control receives the focus or when the user double-clicks the control).

Remarks

If an embedded object supports in-place activation, you can set AutoActivate to 1 (GotFocus) to activate an object when the control receives the focus.

Note   When AutoActivate is set to 2 (Double-Click), the DblClick event does not occur.

See Also

DoVerb Method | DblClick Event

Applies To: OLE Bound Control | OLE Container Control