21 references to ContainingControl
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
434
if (axHost.
ContainingControl
?.CreateAxContainer() is { } container)
503
if (site.
ContainingControl
is { } container)
System\Windows\Forms\ActiveX\AxHost.cs (19)
410
ContainerControl? containingControl =
ContainingControl
;
417
ContainerControl? containingControl =
ContainingControl
;
921
ContainerControl? containingControl =
ContainingControl
;
1385
if (!Visible &&
ContainingControl
is not null &&
ContainingControl
.Visible)
1467
ContainerControl? containingControl =
ContainingControl
;
1596
ContainerControl? container =
ContainingControl
;
1757
hwnd = (
ContainingControl
is null) ? HWND.Null :
ContainingControl
.HWND,
1934
/// The <see cref="
ContainingControl
"/> property value can be different from the <see cref="Control.Parent"/>
1935
/// property. The <see cref="
ContainingControl
"/> represented by this property is the ActiveX control's
1937
/// the <see cref="GroupBox"/> is contained on a <see cref="Form"/>, then the <see cref="
ContainingControl
"/>
1983
private bool ShouldSerializeContainingControl() =>
ContainingControl
!= ParentInternal;
2968
hWndOwner = (
ContainingControl
is null) ? HWND.Null :
ContainingControl
.HWND,
3023
HWND handle =
ContainingControl
is null ? HWND.Null :
ContainingControl
.HWND;
3426
if (
ContainingControl
is { } container)
3493
if (
ContainingControl
is not { } container)