58 references to Validating
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
7988
/// Raises the <see cref="
Validating
"/> event.
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
742
control.
Validating
+= HandleValidating;
787
control.
Validating
-= HandleValidating;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
849
add => base.
Validating
+= value;
850
remove => base.
Validating
-= value;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
423
_nameTextBox.
Validating
+= nameTextBox_Validating;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
96
_txtBoxMask.
Validating
+= txtBoxMask_Validating;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
514
nameof(ToolStripPanel.
Validating
)
System.Windows.Forms.Tests (50)
System\Windows\Forms\ContainerControlTests.cs (24)
831
control.
Validating
+= (sender, e) => validatingCallCount++;
836
child1.
Validating
+= (sender, e) =>
851
grandchild1.
Validating
+= (sender, e) =>
860
child2.
Validating
+= (sender, e) =>
874
grandchild2.
Validating
+= (sender, e) =>
888
child3.
Validating
+= (sender, e) =>
902
grandchild3.
Validating
+= (sender, e) => grandchild3ValidatingCallCount++;
906
child4.
Validating
+= (sender, e) => child4ValidatingCallCount++;
910
child5.
Validating
+= (sender, e) =>
924
child6.
Validating
+= (sender, e) =>
938
child7.
Validating
+= (sender, e) =>
952
child8.
Validating
+= (sender, e) => child8ValidatingCallCount++;
1057
control.
Validating
+= (sender, e) => validatingCallCount++;
1062
child1.
Validating
+= (sender, e) =>
1077
grandchild1.
Validating
+= (sender, e) =>
1086
child2.
Validating
+= (sender, e) =>
1100
grandchild2.
Validating
+= (sender, e) =>
1114
child3.
Validating
+= (sender, e) =>
1128
grandchild3.
Validating
+= (sender, e) => grandchild3ValidatingCallCount++;
1132
child4.
Validating
+= (sender, e) => child4ValidatingCallCount++;
1136
child5.
Validating
+= (sender, e) =>
1150
child6.
Validating
+= (sender, e) =>
1164
child7.
Validating
+= (sender, e) =>
1178
child8.
Validating
+= (sender, e) => child8ValidatingCallCount++;
System\Windows\Forms\ControlTests.Handlers.cs (2)
5526
control.
Validating
+= handler;
5531
control.
Validating
-= handler;
System\Windows\Forms\UserControlTests.cs (24)
1297
control.
Validating
+= (sender, e) => validatingCallCount++;
1302
child1.
Validating
+= (sender, e) =>
1317
grandchild1.
Validating
+= (sender, e) =>
1326
child2.
Validating
+= (sender, e) =>
1340
grandchild2.
Validating
+= (sender, e) =>
1354
child3.
Validating
+= (sender, e) =>
1368
grandchild3.
Validating
+= (sender, e) => grandchild3ValidatingCallCount++;
1372
child4.
Validating
+= (sender, e) => child4ValidatingCallCount++;
1376
child5.
Validating
+= (sender, e) =>
1390
child6.
Validating
+= (sender, e) =>
1404
child7.
Validating
+= (sender, e) =>
1418
child8.
Validating
+= (sender, e) => child8ValidatingCallCount++;
1523
control.
Validating
+= (sender, e) => validatingCallCount++;
1528
child1.
Validating
+= (sender, e) =>
1543
grandchild1.
Validating
+= (sender, e) =>
1552
child2.
Validating
+= (sender, e) =>
1566
grandchild2.
Validating
+= (sender, e) =>
1580
child3.
Validating
+= (sender, e) =>
1594
grandchild3.
Validating
+= (sender, e) => grandchild3ValidatingCallCount++;
1598
child4.
Validating
+= (sender, e) => child4ValidatingCallCount++;
1602
child5.
Validating
+= (sender, e) =>
1616
child6.
Validating
+= (sender, e) =>
1630
child7.
Validating
+= (sender, e) =>
1644
child8.
Validating
+= (sender, e) => child8ValidatingCallCount++;