3 writes to parent
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Control.cs (3)
5485
parent
= value;
5529
parent
= value;
6047
ctl.
parent
= null;
65 references to parent
System.Windows.Forms (65)
winforms\Managed\System\WinForms\Control.cs (65)
1044
if (
parent
!= null &&
parent
.BackColor == BackColor) {
1045
return
parent
.BackColorBrush;
1882
cp.Parent =
parent
== null ? IntPtr.Zero :
parent
.InternalHandle;
2629
if (
parent
!= null) {
2630
return
parent
.FontHandle;
3445
return
parent
;
3448
if (
parent
!= value) {
3453
parent
.Controls.Remove(this);
5503
if (oldVisible != newVisible && !(!oldVisible && newVisible &&
parent
== null && !GetTopLevel())) {
5612
if (
parent
!= null) {
5613
parent
.Controls.SetChildIndex(this, 0);
5634
if( this.
parent
!= null ){
5635
return this.
parent
.CanProcessMnemonic();
5648
for (Control ctl = this; ctl != null; ctl = ctl.
parent
) {
5697
if (
parent
!= null) {
5698
parent
.ChildGotFocus(child);
5805
if (
parent
!= null) {
5806
Rectangle parentClient =
parent
.ClientRectangle;
6034
if (
parent
!= null) {
6035
parent
.Controls.Remove(this);
6668
up = up.
parent
;
6887
Control p = ctl.
parent
;
6942
ctl = ctl.
parent
;
6951
Control p = ctl.
parent
;
8594
if (
parent
!= null && visible && !Created) {
9024
if (
parent
!= null) {
9025
parent
.ChildGotFocus(this);
10330
if (
parent
!= null) {
10331
return
parent
.ProcessCmdKey(ref msg, keyData);
10452
return
parent
== null? false:
parent
.ProcessDialogChar(charCode);
10483
return
parent
== null? false:
parent
.ProcessDialogKey(keyData);
10694
if (
parent
!= null &&
parent
.ProcessKeyPreview(ref m)) return true;
10729
return
parent
== null? false:
parent
.ProcessKeyPreview(ref m);
11031
&& (Control.FromHandleInternal(parentHandle.Handle) == null || this.
parent
== null) // but wasnt a windows forms window
11669
if (!Contains(ctl) || !nested && ctl.
parent
!= this) ctl = null;
11685
&& (nested || ctl.
parent
== this)) {
11687
if (AccessibilityImprovements.Level3 && ctl.
parent
is ToolStrip) {
11789
if (
parent
!= null) {
11790
parent
.Controls.SetChildIndex(this, -1);
12003
if (
parent
!= null) {
12004
parent
.UpdateChildZOrder(this);
12092
if (
parent
!= null) {
12134
else if (IsHandleCreated || value &&
parent
!= null &&
parent
.Created) {
12171
using (new LayoutTransaction(
parent
, this, PropertyNames.Visible)) {
12687
if (
parent
!= null) {
12688
parent
.UpdateChildZOrder(this);
12696
if (!IsHandleCreated || !ctl.IsHandleCreated || ctl.
parent
!= this) return;
12700
if (c.IsHandleCreated && c.
parent
== this) {
13261
if (
parent
!= null) {
13262
parent
.UpdateChildZOrder(this);
14075
if (
parent
!= null && UnsafeNativeMethods.GetParent(new HandleRef(window, InternalHandle)) ==
parent
.InternalHandle &&
14080
parent
.UpdateChildControlIndex(this);
14758
if (value.
parent
== owner) {
14765
if (value.
parent
!= null) {
14766
value.
parent
.Controls.Remove(value);
14796
Control oldParent = value.
parent
;
14804
if (oldParent != value.
parent
&& (owner.state & STATE_CREATED) != 0) {