3 writes to _parent
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
4258_parent = value; 4313_parent = value; 4838child._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)
1426cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 2716get => _parent; 2719if (_parent == value) 2730_parent?.Controls.Remove(this); 4276if (oldVisible != newVisible && !(!oldVisible && newVisible && _parent is null && !GetTopLevel())) 4402if (_parent is not null) 4404_parent.Controls.SetChildIndex(this, 0); 4422Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4432for (Control? ctl = this; ctl is not null; ctl = ctl._parent) 4492_parent?.ChildGotFocus(child); 4586if (_parent is not null) 4588Rectangle parentClient = _parent.ClientRectangle; 4831_parent?.Controls.Remove(this); 5629Control? p = ctl._parent; 5682ctl = ctl._parent; 5692Control? parent = ctl._parent ?? throw new InvalidOperationException( 5762return ctl.ToolStripControlHost is not null ? GetNextControl(ctl._parent, forward: false) : parent; 7242if (_parent is not null && visible && !Created) 7670_parent?.ChildGotFocus(this); 8790_parent?.ProcessCmdKey(ref msg, keyData) ?? false; 8896protected virtual bool ProcessDialogChar(char charCode) => _parent?.ProcessDialogChar(charCode) ?? false; 8910protected virtual bool ProcessDialogKey(Keys keyData) => _parent?.ProcessDialogKey(keyData) ?? false; 9007(_parent is not null && _parent.ProcessKeyPreview(ref m)) || ProcessKeyEventArgs(ref m); 9024protected virtual bool ProcessKeyPreview(ref Message m) => _parent?.ProcessKeyPreview(ref m) ?? false; 9353&& (FromHandle(parentHandle) is null || _parent is null) 9985if (!Contains(ctl) || (!nested && ctl._parent != this)) 10013&& (nested || ctl._parent == this)) 10015if (ctl._parent is ToolStrip) 10052if (_parent is not null) 10054_parent.Controls.SetChildIndex(this, -1); 10318_parent?.UpdateChildZOrder(this); 10397if (_parent is not null) 10445else if (IsHandleCreated || (value && _parent?.Created == true)) 10490using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 11021_parent?.UpdateChildZOrder(this); 11029if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 11038if (child.IsHandleCreated && child._parent == this) 11411_parent?.UpdateChildZOrder(this); 12256&& _parent is not null 12257&& PInvoke.GetParent(this) == _parent.InternalHandle 12263_parent.UpdateChildControlIndex(this);