5 writes to _activeControl
System.Windows.Forms (5)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
545
_activeControl
= value;
595
_activeControl
= null;
1600
innerMostFCC.
_activeControl
= null;
1615
containerControl.
_activeControl
= null;
1975
_activeControl
= null;
45 references to _activeControl
System.Windows.Forms (45)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (45)
285
get =>
_activeControl
;
410
if (control !=
_activeControl
|| updateContainerActiveControl)
469
if (control ==
_activeControl
|| control.Contains(
_activeControl
))
472
if (selected &&
_activeControl
!= control)
477
if (
_activeControl
?.Parent is not null && !
_activeControl
.Parent.IsTopMdiWindowClosing)
487
else if (
_activeControl
is null && ParentInternal is not null)
539
if (
_activeControl
!= value)
553
if (
_activeControl
== value)
561
_focusedControl =
_activeControl
;
564
return
_activeControl
== value;
622
Debug.WriteLineIf(
_activeControl
is not null
623
&& !Contains(
_activeControl
), "ActiveControl is not a child of this ContainerControl");
625
if (
_activeControl
is not null &&
_activeControl
.Visible)
629
if (focusHandle.IsNull || FromChildHandle(focusHandle) !=
_activeControl
)
631
PInvoke.SetFocus(
_activeControl
);
1159
if (
_activeControl
is not null)
1161
group =
_activeControl
.ParentInternal;
1164
return group?.SelectNextControl(
_activeControl
, forward, false, false, true) ?? false;
1316
return SelectNextControl(
_activeControl
, forward, tabStopOnly: true, nested: true, wrap: false);
1332
Control? last =
_activeControl
;
1339
scrollParent.ScrollControlIntoView(
_activeControl
);
1451
if (
_activeControl
== value && (value is null || value.Focused))
1540
while (
_activeControl
!= pathControl)
1542
if (pathControl is null || pathControl.IsDescendant(
_activeControl
))
1545
Control? nextControlDown =
_activeControl
;
1653
while (pathControl is not null && pathControl != stopControl && !pathControl.IsDescendant(
_activeControl
));
1658
if (
_activeControl
is null
1659
|| (
_activeControl
?.ParentInternal is not null && !
_activeControl
.ParentInternal.IsContainerControl))
1661
Debug.Assert(
_activeControl
is null ||
_activeControl
.ParentInternal.GetContainerControl() == this);
1664
_focusedControl =
_activeControl
;
1665
if (
_activeControl
is not null)
1667
EnterValidation(
_activeControl
);
1712
else if (container.
_activeControl
is not null && container.
_activeControl
.ShouldAutoValidate)
1714
_unvalidatedControl = container.
_activeControl
;
1793
(
_activeControl
is not null &&
_activeControl
.CausesValidation))
1887
Control? currentActiveControl =
_activeControl
;
1923
if (currentActiveControl ==
_activeControl
)
1970
if (
_activeControl
is ContainerControl activeContainerControl)