3 writes to _parent
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
4164_parent = value; 4219_parent = value; 4744child._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)
1332cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 2622get => _parent; 2625if (_parent == value) 2636_parent?.Controls.Remove(this); 4182if (oldVisible != newVisible && !(!oldVisible && newVisible && _parent is null && !GetTopLevel())) 4308if (_parent is not null) 4310_parent.Controls.SetChildIndex(this, 0); 4328Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4338for (Control? ctl = this; ctl is not null; ctl = ctl._parent) 4398_parent?.ChildGotFocus(child); 4492if (_parent is not null) 4494Rectangle parentClient = _parent.ClientRectangle; 4737_parent?.Controls.Remove(this); 5535Control? p = ctl._parent; 5588ctl = ctl._parent; 5598Control? parent = ctl._parent ?? throw new InvalidOperationException( 5668return ctl.ToolStripControlHost is not null ? GetNextControl(ctl._parent, forward: false) : parent; 7151if (_parent is not null && visible && !Created) 7576_parent?.ChildGotFocus(this); 8708_parent?.ProcessCmdKey(ref msg, keyData) ?? false; 8814protected virtual bool ProcessDialogChar(char charCode) => _parent?.ProcessDialogChar(charCode) ?? false; 8828protected virtual bool ProcessDialogKey(Keys keyData) => _parent?.ProcessDialogKey(keyData) ?? false; 8925(_parent is not null && _parent.ProcessKeyPreview(ref m)) || ProcessKeyEventArgs(ref m); 8942protected virtual bool ProcessKeyPreview(ref Message m) => _parent?.ProcessKeyPreview(ref m) ?? false; 9265&& (FromHandle(parentHandle) is null || _parent is null) 9885if (!Contains(ctl) || (!nested && ctl._parent != this)) 9913&& (nested || ctl._parent == this)) 9915if (ctl._parent is ToolStrip) 9952if (_parent is not null) 9954_parent.Controls.SetChildIndex(this, -1); 10218_parent?.UpdateChildZOrder(this); 10282if (_parent is not null) 10329else if (IsHandleCreated || (value && _parent?.Created == true)) 10374using (new LayoutTransaction(_parent, this, PropertyNames.Visible)) 10905_parent?.UpdateChildZOrder(this); 10913if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 10922if (child.IsHandleCreated && child._parent == this) 11295_parent?.UpdateChildZOrder(this); 12143&& _parent is not null 12144&& PInvoke.GetParent(this) == _parent.InternalHandle 12150_parent.UpdateChildControlIndex(this);