5 writes to _activeControl
System.Windows.Forms (5)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
548
_activeControl
= value;
601
_activeControl
= null;
1606
innerMostFCC.
_activeControl
= null;
1621
containerControl.
_activeControl
= null;
1984
_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)
559
if (
_activeControl
== value)
567
_focusedControl =
_activeControl
;
570
return
_activeControl
== value;
628
Debug.WriteLineIf(
_activeControl
is not null
629
&& !Contains(
_activeControl
), "ActiveControl is not a child of this ContainerControl");
631
if (
_activeControl
is not null &&
_activeControl
.Visible)
635
if (focusHandle.IsNull || FromChildHandle(focusHandle) !=
_activeControl
)
637
PInvoke.SetFocus(
_activeControl
);
1165
if (
_activeControl
is not null)
1167
group =
_activeControl
.ParentInternal;
1170
return group?.SelectNextControl(
_activeControl
, forward, false, false, true) ?? false;
1322
return SelectNextControl(
_activeControl
, forward, tabStopOnly: true, nested: true, wrap: false);
1338
Control? last =
_activeControl
;
1345
scrollParent.ScrollControlIntoView(
_activeControl
);
1457
if (
_activeControl
== value && (value is null || value.Focused))
1546
while (
_activeControl
!= pathControl)
1548
if (pathControl is null || pathControl.IsDescendant(
_activeControl
))
1551
Control? nextControlDown =
_activeControl
;
1659
while (pathControl is not null && pathControl != stopControl && !pathControl.IsDescendant(
_activeControl
));
1664
if (
_activeControl
is null
1665
|| (
_activeControl
?.ParentInternal is not null && !
_activeControl
.ParentInternal.IsContainerControl))
1667
Debug.Assert(
_activeControl
is null ||
_activeControl
.ParentInternal.GetContainerControl() == this);
1670
_focusedControl =
_activeControl
;
1671
if (
_activeControl
is not null)
1673
EnterValidation(
_activeControl
);
1718
else if (container.
_activeControl
is not null && container.
_activeControl
.ShouldAutoValidate)
1720
_unvalidatedControl = container.
_activeControl
;
1799
(
_activeControl
is not null &&
_activeControl
.CausesValidation))
1893
Control? currentActiveControl =
_activeControl
;
1929
if (currentActiveControl ==
_activeControl
)
1979
if (
_activeControl
is ContainerControl activeContainerControl)