5 writes to _activeControl
System.Windows.Forms (5)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
549
_activeControl
= value;
602
_activeControl
= null;
1607
innerMostFCC.
_activeControl
= null;
1622
containerControl.
_activeControl
= null;
1985
_activeControl
= null;
45 references to _activeControl
System.Windows.Forms (45)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (45)
286
get =>
_activeControl
;
411
if (control !=
_activeControl
|| updateContainerActiveControl)
470
if (control ==
_activeControl
|| control.Contains(
_activeControl
))
473
if (selected &&
_activeControl
!= control)
478
if (
_activeControl
?.Parent is not null && !
_activeControl
.Parent.IsTopMdiWindowClosing)
488
else if (
_activeControl
is null && ParentInternal is not null)
540
if (
_activeControl
!= value)
560
if (
_activeControl
== value)
568
_focusedControl =
_activeControl
;
571
return
_activeControl
== value;
629
Debug.WriteLineIf(
_activeControl
is not null
630
&& !Contains(
_activeControl
), "ActiveControl is not a child of this ContainerControl");
632
if (
_activeControl
is not null &&
_activeControl
.Visible)
636
if (focusHandle.IsNull || FromChildHandle(focusHandle) !=
_activeControl
)
638
PInvoke.SetFocus(
_activeControl
);
1166
if (
_activeControl
is not null)
1168
group =
_activeControl
.ParentInternal;
1171
return group?.SelectNextControl(
_activeControl
, forward, false, false, true) ?? false;
1323
return SelectNextControl(
_activeControl
, forward, tabStopOnly: true, nested: true, wrap: false);
1339
Control? last =
_activeControl
;
1346
scrollParent.ScrollControlIntoView(
_activeControl
);
1458
if (
_activeControl
== value && (value is null || value.Focused))
1547
while (
_activeControl
!= pathControl)
1549
if (pathControl is null || pathControl.IsDescendant(
_activeControl
))
1552
Control? nextControlDown =
_activeControl
;
1660
while (pathControl is not null && pathControl != stopControl && !pathControl.IsDescendant(
_activeControl
));
1665
if (
_activeControl
is null
1666
|| (
_activeControl
?.ParentInternal is not null && !
_activeControl
.ParentInternal.IsContainerControl))
1668
Debug.Assert(
_activeControl
is null ||
_activeControl
.ParentInternal.GetContainerControl() == this);
1671
_focusedControl =
_activeControl
;
1672
if (
_activeControl
is not null)
1674
EnterValidation(
_activeControl
);
1719
else if (container.
_activeControl
is not null && container.
_activeControl
.ShouldAutoValidate)
1721
_unvalidatedControl = container.
_activeControl
;
1800
(
_activeControl
is not null &&
_activeControl
.CausesValidation))
1894
Control? currentActiveControl =
_activeControl
;
1930
if (currentActiveControl ==
_activeControl
)
1980
if (
_activeControl
is ContainerControl activeContainerControl)