3 writes to _parent
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
4462_parent = value; 4522_parent = value; 5046child._parent = null;
48 references to _parent
System.Windows.Forms (48)
System\Windows\Forms\Control.ControlCollection.cs (4)
63if (value._parent == Owner) 70value._parent?.Controls.Remove(value); 96Control? oldParent = value._parent; 106if (oldParent != value._parent && (Owner._state & States.Created) != 0)
System\Windows\Forms\Control.cs (44)
1598cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 2888get => _parent; 2891if (_parent == value) 2902_parent?.Controls.Remove(this); 4480if (oldVisible != newVisible && !(!oldVisible && newVisible && _parent is null && !GetTopLevel())) 4610if (_parent is not null) 4612_parent.Controls.SetChildIndex(this, 0); 4630Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4640for (Control? ctl = this; ctl is not null; ctl = ctl._parent) 4700_parent?.ChildGotFocus(child); 4794if (_parent is not null) 4796Rectangle parentClient = _parent.ClientRectangle; 5039_parent?.Controls.Remove(this); 5846Control? p = ctl._parent; 5899ctl = ctl._parent; 5909Control? parent = ctl._parent ?? throw new InvalidOperationException( 5979return ctl.ToolStripControlHost is not null ? GetNextControl(ctl._parent, forward: false) : parent; 7836if (_parent is not null && visible && !Created) 8273_parent?.ChildGotFocus(this); 9514_parent?.ProcessCmdKey(ref msg, keyData) ?? false; 9620protected virtual bool ProcessDialogChar(char charCode) => _parent?.ProcessDialogChar(charCode) ?? false; 9634protected virtual bool ProcessDialogKey(Keys keyData) => _parent?.ProcessDialogKey(keyData) ?? false; 9731(_parent is not null && _parent.ProcessKeyPreview(ref m)) || ProcessKeyEventArgs(ref m); 9748protected virtual bool ProcessKeyPreview(ref Message m) => _parent?.ProcessKeyPreview(ref m) ?? false; 10077&& (FromHandle(parentHandle) is null || _parent is null) 10708if (!Contains(ctl) || (!nested && ctl._parent != this)) 10736&& (nested || ctl._parent == this)) 10738if (ctl._parent is ToolStrip) 10775if (_parent is not null) 10777_parent.Controls.SetChildIndex(this, -1); 11041_parent?.UpdateChildZOrder(this); 11119if (_parent is not null) 11166else if (IsHandleCreated || (value && _parent?.Created == true)) 11211using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 11742_parent?.UpdateChildZOrder(this); 11750if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 11759if (child.IsHandleCreated && child._parent == this) 12132_parent?.UpdateChildZOrder(this); 12981&& _parent is not null 12982&& PInvoke.GetParent(this) == _parent.InternalHandle 12988_parent.UpdateChildControlIndex(this);