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