System.Windows.Forms.AxHost.ContainingControl Property

Gets or sets the control containing the ActiveX control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ComponentModel.Browsable(false)]
public ContainerControl ContainingControl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The AxHost.ContainingControl property value can be different from the Control.Parent property. The System.Windows.Forms.ContainerControl represented by this property is the ActiveX control's logical container. For example, if an ActiveX control is hosted in a System.Windows.Forms.GroupBox control, and the System.Windows.Forms.GroupBox is contained on a System.Windows.Forms.Form, then the AxHost.ContainingControl property value of the ActiveX control is the System.Windows.Forms.Form, and the Control.Parent property value is the System.Windows.Forms.GroupBox control.

Requirements

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