ContainingControl Property

AxHost.ContainingControl Property


Gets or sets the control containing the ActiveX control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public ContainerControl ContainingControl { get; set; }

Property Value

Type: System.Windows.Forms.ContainerControl

A ContainerControl that represents the control containing the ActiveX control.

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


for all windows to get this property value. Associated enumeration: UIPermissionWindow.AllWindows

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft