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