AxHost::ContainingControl Property
.NET Framework (current version)
Gets or sets the control containing the ActiveX control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property ContainerControl^ ContainingControl { ContainerControl^ get(); void set(ContainerControl^ value); }
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.
UIPermission
for all windows to get this property value. Associated enumeration: UIPermissionWindow::AllWindows
.NET Framework
Available since 1.1
Available since 1.1
Show: