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)
409
ContainerControl? containingControl =
ContainingControl
;
419
ContainerControl? containingControl =
ContainingControl
;
923
ContainerControl? containingControl =
ContainingControl
;
1387
if (!Visible &&
ContainingControl
is not null &&
ContainingControl
.Visible)
1469
ContainerControl? containingControl =
ContainingControl
;
1598
ContainerControl? container =
ContainingControl
;
1759
hwnd = (
ContainingControl
is null) ? HWND.Null :
ContainingControl
.HWND,
1936
/// The <see cref="
ContainingControl
"/> property value can be different from the <see cref="Control.Parent"/>
1937
/// property. The <see cref="
ContainingControl
"/> represented by this property is the ActiveX control's
1939
/// the <see cref="GroupBox"/> is contained on a <see cref="Form"/>, then the <see cref="
ContainingControl
"/>
1985
private bool ShouldSerializeContainingControl() =>
ContainingControl
!= ParentInternal;
2970
hWndOwner = (
ContainingControl
is null) ? HWND.Null :
ContainingControl
.HWND,
3025
HWND handle =
ContainingControl
is null ? HWND.Null :
ContainingControl
.HWND;
3427
if (
ContainingControl
is { } container)
3494
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
);