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) 10772if (!Contains(ctl) || (!nested && ctl._parent != this)) 10800&& (nested || ctl._parent == this)) 10802if (ctl._parent is ToolStrip) 10839if (_parent is not null) 10841_parent.Controls.SetChildIndex(this, -1); 11105_parent?.UpdateChildZOrder(this); 11183if (_parent is not null) 11230else if (IsHandleCreated || (value && _parent?.Created == true)) 11275using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 11806_parent?.UpdateChildZOrder(this); 11814if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 11823if (child.IsHandleCreated && child._parent == this) 12196_parent?.UpdateChildZOrder(this); 13045&& _parent is not null 13046&& PInvoke.GetParent(this) == _parent.InternalHandle 13052_parent.UpdateChildControlIndex(this);