3 writes to _parent
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
4251_parent = value; 4306_parent = value; 4831child._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)
1419cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 2709get => _parent; 2712if (_parent == value) 2723_parent?.Controls.Remove(this); 4269if (oldVisible != newVisible && !(!oldVisible && newVisible && _parent is null && !GetTopLevel())) 4395if (_parent is not null) 4397_parent.Controls.SetChildIndex(this, 0); 4415Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4425for (Control? ctl = this; ctl is not null; ctl = ctl._parent) 4485_parent?.ChildGotFocus(child); 4579if (_parent is not null) 4581Rectangle parentClient = _parent.ClientRectangle; 4824_parent?.Controls.Remove(this); 5622Control? p = ctl._parent; 5675ctl = ctl._parent; 5685Control? parent = ctl._parent ?? throw new InvalidOperationException( 5755return ctl.ToolStripControlHost is not null ? GetNextControl(ctl._parent, forward: false) : parent; 7237if (_parent is not null && visible && !Created) 7663_parent?.ChildGotFocus(this); 8783_parent?.ProcessCmdKey(ref msg, keyData) ?? false; 8889protected virtual bool ProcessDialogChar(char charCode) => _parent?.ProcessDialogChar(charCode) ?? false; 8903protected virtual bool ProcessDialogKey(Keys keyData) => _parent?.ProcessDialogKey(keyData) ?? false; 9000(_parent is not null && _parent.ProcessKeyPreview(ref m)) || ProcessKeyEventArgs(ref m); 9017protected virtual bool ProcessKeyPreview(ref Message m) => _parent?.ProcessKeyPreview(ref m) ?? false; 9346&& (FromHandle(parentHandle) is null || _parent is null) 9977if (!Contains(ctl) || (!nested && ctl._parent != this)) 10005&& (nested || ctl._parent == this)) 10007if (ctl._parent is ToolStrip) 10044if (_parent is not null) 10046_parent.Controls.SetChildIndex(this, -1); 10310_parent?.UpdateChildZOrder(this); 10388if (_parent is not null) 10435else if (IsHandleCreated || (value && _parent?.Created == true)) 10480using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 11011_parent?.UpdateChildZOrder(this); 11019if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 11028if (child.IsHandleCreated && child._parent == this) 11401_parent?.UpdateChildZOrder(this); 12246&& _parent is not null 12247&& PInvoke.GetParent(this) == _parent.InternalHandle 12253_parent.UpdateChildControlIndex(this);