3 writes to _parent
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
4163_parent = value; 4218_parent = value; 4743child._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)
1331cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 2621get => _parent; 2624if (_parent == value) 2635_parent?.Controls.Remove(this); 4181if (oldVisible != newVisible && !(!oldVisible && newVisible && _parent is null && !GetTopLevel())) 4307if (_parent is not null) 4309_parent.Controls.SetChildIndex(this, 0); 4327Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4337for (Control? ctl = this; ctl is not null; ctl = ctl._parent) 4397_parent?.ChildGotFocus(child); 4491if (_parent is not null) 4493Rectangle parentClient = _parent.ClientRectangle; 4736_parent?.Controls.Remove(this); 5534Control? p = ctl._parent; 5587ctl = ctl._parent; 5597Control? parent = ctl._parent ?? throw new InvalidOperationException( 5667return ctl.ToolStripControlHost is not null ? GetNextControl(ctl._parent, forward: false) : parent; 7150if (_parent is not null && visible && !Created) 7575_parent?.ChildGotFocus(this); 8707_parent?.ProcessCmdKey(ref msg, keyData) ?? false; 8813protected virtual bool ProcessDialogChar(char charCode) => _parent?.ProcessDialogChar(charCode) ?? false; 8827protected virtual bool ProcessDialogKey(Keys keyData) => _parent?.ProcessDialogKey(keyData) ?? false; 8924(_parent is not null && _parent.ProcessKeyPreview(ref m)) || ProcessKeyEventArgs(ref m); 8941protected virtual bool ProcessKeyPreview(ref Message m) => _parent?.ProcessKeyPreview(ref m) ?? false; 9264&& (FromHandle(parentHandle) is null || _parent is null) 9884if (!Contains(ctl) || (!nested && ctl._parent != this)) 9912&& (nested || ctl._parent == this)) 9914if (ctl._parent is ToolStrip) 9951if (_parent is not null) 9953_parent.Controls.SetChildIndex(this, -1); 10217_parent?.UpdateChildZOrder(this); 10281if (_parent is not null) 10328else if (IsHandleCreated || (value && _parent?.Created == true)) 10373using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 10904_parent?.UpdateChildZOrder(this); 10912if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 10921if (child.IsHandleCreated && child._parent == this) 11294_parent?.UpdateChildZOrder(this); 12142&& _parent is not null 12143&& PInvoke.GetParent(this) == _parent.InternalHandle 12149_parent.UpdateChildControlIndex(this);