3 writes to _parent
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
4471_parent = value; 4531_parent = value; 5055child._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)
1607cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 2897get => _parent; 2900if (_parent == value) 2911_parent?.Controls.Remove(this); 4489if (oldVisible != newVisible && !(!oldVisible && newVisible && _parent is null && !GetTopLevel())) 4619if (_parent is not null) 4621_parent.Controls.SetChildIndex(this, 0); 4639Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4649for (Control? ctl = this; ctl is not null; ctl = ctl._parent) 4709_parent?.ChildGotFocus(child); 4803if (_parent is not null) 4805Rectangle parentClient = _parent.ClientRectangle; 5048_parent?.Controls.Remove(this); 5855Control? p = ctl._parent; 5908ctl = ctl._parent; 5918Control? parent = ctl._parent ?? throw new InvalidOperationException( 5988return ctl.ToolStripControlHost is not null ? GetNextControl(ctl._parent, forward: false) : parent; 7894if (_parent is not null && visible && !Created) 8331_parent?.ChildGotFocus(this); 9572_parent?.ProcessCmdKey(ref msg, keyData) ?? false; 9678protected virtual bool ProcessDialogChar(char charCode) => _parent?.ProcessDialogChar(charCode) ?? false; 9692protected virtual bool ProcessDialogKey(Keys keyData) => _parent?.ProcessDialogKey(keyData) ?? false; 9789(_parent is not null && _parent.ProcessKeyPreview(ref m)) || ProcessKeyEventArgs(ref m); 9806protected virtual bool ProcessKeyPreview(ref Message m) => _parent?.ProcessKeyPreview(ref m) ?? false; 10135&& (FromHandle(parentHandle) is null || _parent is null) 10766if (!Contains(ctl) || (!nested && ctl._parent != this)) 10794&& (nested || ctl._parent == this)) 10796if (ctl._parent is ToolStrip) 10833if (_parent is not null) 10835_parent.Controls.SetChildIndex(this, -1); 11099_parent?.UpdateChildZOrder(this); 11177if (_parent is not null) 11224else if (IsHandleCreated || (value && _parent?.Created == true)) 11269using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 11800_parent?.UpdateChildZOrder(this); 11808if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 11817if (child.IsHandleCreated && child._parent == this) 12190_parent?.UpdateChildZOrder(this); 13039&& _parent is not null 13040&& PInvoke.GetParent(this) == _parent.InternalHandle 13046_parent.UpdateChildControlIndex(this);