60 references to ParentChanged
System.Windows.Forms (4)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (2)
41_control.ParentChanged += OnParentVisibleChanged; 64_control.ParentChanged -= OnParentVisibleChanged;
System\Windows\Forms\ToolTip\ToolTip.cs (2)
530currentTopLevel.ParentChanged += OnTopLevelPropertyChanged; 685_topLevelControl.ParentChanged -= OnTopLevelPropertyChanged;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.cs (2)
483Control.ParentChanged -= OnParentChanged; 955Control.ParentChanged += OnParentChanged;
System.Windows.Forms.Tests (53)
System\Windows\Forms\ButtonBaseTests.cs (10)
2999control.ParentChanged += handler; 3017control.ParentChanged -= handler; 6960control.ParentChanged += handler; 6966control.ParentChanged -= handler; 7005control.ParentChanged += handler; 7011control.ParentChanged -= handler; 7058control.ParentChanged += handler; 7067control.ParentChanged -= handler; 7116control.ParentChanged += handler; 7125control.ParentChanged -= handler;
System\Windows\Forms\ContainerControlTests.cs (2)
758control.ParentChanged += handler; 763control.ParentChanged -= handler;
System\Windows\Forms\ControlTests.ControlCollection.cs (22)
472child1.ParentChanged += (sender, e) => 478child2.ParentChanged += (sender, e) => 555control.ParentChanged += (sender, e) => parentChangedCallCount++; 599control.ParentChanged += (sender, e) => parentChangedCallCount++; 682control.ParentChanged += parentChangedHandler; 773control.ParentChanged -= parentChangedHandler; 838control.ParentChanged += parentChangedHandler; 936control.ParentChanged -= parentChangedHandler; 978control.ParentChanged += parentChangedHandler; 1009control.ParentChanged -= parentChangedHandler; 1058control.ParentChanged += parentChangedHandler; 1093control.ParentChanged -= parentChangedHandler; 2252control.ParentChanged += (sender, e) => parentChangedCallCount++; 2299control.ParentChanged += (sender, e) => parentChangedCallCount++; 2373control.ParentChanged += (sender, e) => 2534control.ParentChanged += parentChangedHandler; 2609control.ParentChanged -= parentChangedHandler; 2649control.ParentChanged += (sender, e) => parentChangedCallCount++; 2725control.ParentChanged += parentChangedHandler; 2760control.ParentChanged -= parentChangedHandler; 2779child1.ParentChanged += (sender, e) => 2787child2.ParentChanged += (sender, e) =>
System\Windows\Forms\ControlTests.Handlers.cs (2)
4187control.ParentChanged += handler; 4192control.ParentChanged -= handler;
System\Windows\Forms\ControlTests.Internals.cs (1)
219control.ParentChanged += (sender, args) => wasChanged = true;
System\Windows\Forms\ControlTests.Properties.cs (2)
9780control.ParentChanged += handler; 9798control.ParentChanged -= handler;
System\Windows\Forms\DataGridViewTests.cs (2)
918control.ParentChanged += handler; 936control.ParentChanged -= handler;
System\Windows\Forms\FormTests.cs (2)
1165control.ParentChanged += handler; 1183control.ParentChanged -= handler;
System\Windows\Forms\PictureBoxTests.cs (4)
1185control.ParentChanged += handler; 1203control.ParentChanged -= handler; 2623control.ParentChanged += handler; 2628control.ParentChanged -= handler;
System\Windows\Forms\SplitterPanelTests.cs (2)
746control.ParentChanged += handler; 764control.ParentChanged -= handler;
System\Windows\Forms\TabPageTests.cs (2)
2578control.ParentChanged += handler; 2596control.ParentChanged -= handler;
System\Windows\Forms\WebBrowserTests.cs (2)
1550control.ParentChanged += handler; 1568control.ParentChanged -= handler;
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
911this.ParentChanged += this.OnPropertyChangedParent;