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