2 writes to ContainingControl
System.Windows.Forms.Tests (2)
System\Windows\Forms\AxHostTests.cs (2)
423
ContainingControl
= value
428
control.
ContainingControl
= value;
37 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
;
420
ContainerControl? containingControl =
ContainingControl
;
924
ContainerControl? containingControl =
ContainingControl
;
1388
if (!Visible &&
ContainingControl
is not null &&
ContainingControl
.Visible)
1470
ContainerControl? containingControl =
ContainingControl
;
1599
ContainerControl? container =
ContainingControl
;
1760
hwnd = (
ContainingControl
is null) ? HWND.Null :
ContainingControl
.HWND,
1937
/// The <see cref="
ContainingControl
"/> property value can be different from the <see cref="Control.Parent"/>
1938
/// property. The <see cref="
ContainingControl
"/> represented by this property is the ActiveX control's
1940
/// the <see cref="GroupBox"/> is contained on a <see cref="Form"/>, then the <see cref="
ContainingControl
"/>
1986
private bool ShouldSerializeContainingControl() =>
ContainingControl
!= ParentInternal;
2971
hWndOwner = (
ContainingControl
is null) ? HWND.Null :
ContainingControl
.HWND,
3026
HWND handle =
ContainingControl
is null ? HWND.Null :
ContainingControl
.HWND;
3429
if (
ContainingControl
is { } container)
3496
if (
ContainingControl
is not { } container)
System.Windows.Forms.Tests (16)
System\Windows\Forms\AxHostTests.cs (16)
52
Assert.Null(control.
ContainingControl
);
146
Assert.Null(control.
ContainingControl
);
357
Assert.Same(grandparent, control.
ContainingControl
);
360
Assert.Same(control.
ContainingControl
, control.
ContainingControl
);
364
Assert.Same(grandparent, control.
ContainingControl
);
375
Assert.Same(parent, control.
ContainingControl
);
378
Assert.Same(parent, control.
ContainingControl
);
382
Assert.Same(parent, control.
ContainingControl
);
393
Assert.Null(control.
ContainingControl
);
396
Assert.Null(control.
ContainingControl
);
401
Assert.Same(grandparent, control.
ContainingControl
);
404
Assert.Same(grandparent, control.
ContainingControl
);
408
Assert.Same(grandparent, control.
ContainingControl
);
425
Assert.Same(value, control.
ContainingControl
);
429
Assert.Same(value, control.
ContainingControl
);