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