5 writes to _activeControl
System.Windows.Forms (5)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
544_activeControl = value; 594_activeControl = null; 1608innerMostFCC._activeControl = null; 1623containerControl._activeControl = null; 1983_activeControl = null;
40 references to _activeControl
System.Windows.Forms (40)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (40)
284get => _activeControl; 409if (control != _activeControl || updateContainerActiveControl) 468if (control == _activeControl || control.Contains(_activeControl)) 471if (selected && _activeControl != control) 476if (_activeControl?.Parent is not null && !_activeControl.Parent.IsTopMdiWindowClosing) 486else if (_activeControl is null && ParentInternal is not null) 538if (_activeControl != value) 552if (_activeControl == value) 560_focusedControl = _activeControl; 563return _activeControl == value; 621Debug.WriteLineIf(_activeControl is not null 622&& !Contains(_activeControl), "ActiveControl is not a child of this ContainerControl"); 624if (_activeControl is not null && _activeControl.Visible) 628if (focusHandle.IsNull || FromChildHandle(focusHandle) != _activeControl) 630PInvoke.SetFocus(_activeControl); 1167if (_activeControl is not null) 1169group = _activeControl.ParentInternal; 1172return group?.SelectNextControl(_activeControl, forward, false, false, true) ?? false; 1324return SelectNextControl(_activeControl, forward, tabStopOnly: true, nested: true, wrap: false); 1340Control? last = _activeControl; 1347scrollParent.ScrollControlIntoView(_activeControl); 1459if (_activeControl == value && (value is null || value.Focused)) 1548while (_activeControl != pathControl) 1550if (pathControl is null || pathControl.IsDescendant(_activeControl)) 1553Control? nextControlDown = _activeControl; 1661while (pathControl is not null && pathControl != stopControl && !pathControl.IsDescendant(_activeControl)); 1672_focusedControl = _activeControl; 1673if (_activeControl is not null) 1675EnterValidation(_activeControl); 1720else if (container._activeControl is not null && container._activeControl.ShouldAutoValidate) 1722_unvalidatedControl = container._activeControl; 1801(_activeControl is not null && _activeControl.CausesValidation)) 1895Control? currentActiveControl = _activeControl; 1931if (currentActiveControl == _activeControl) 1978if (_activeControl is ContainerControl activeContainerControl)