System.Windows.Forms.ContainerControl.ActiveControl Property

Gets or sets the active control on the container control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public Control ActiveControl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ContainerControl.ActiveControl property activates or retrieves the active control on the container control.

In order to receive a valid value from this property, the object that calls it must either contain or be contained in the control it is calling. If one form tries to call another form's ContainerControl.ActiveControl properties, it will receive an undefined value. In this case, you need to define your own communication mechanism between the forms to pass this data.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0