32 references to SetError
System.Windows.Forms (3)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (3)
394
SetError
(binding.Control, (e.ErrorText ?? string.Empty));
431
SetError
(control, string.Empty);
508
SetError
(entry.Key, entry.Value);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
645
_errorProvider.
SetError
(_maskedTextBox, MaskedTextBoxDesigner.GetMaskInputRejectedErrorMessage(e));
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
87
_errorProvider.
SetError
(_cloneMtb, MaskedTextBoxDesigner.GetMaskInputRejectedErrorMessage(e));
System.Windows.Forms.Tests (25)
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
42
_errorProvider.
SetError
(_control1, _errorText1);
43
_errorProvider.
SetError
(_control2, _errorText2);
System\Windows\Forms\ErrorProviderTests.cs (23)
872
provider.
SetError
(control, "error");
895
provider.
SetError
(control, "error");
925
provider.
SetError
(control, "error");
1047
provider.
SetError
(control, value);
1051
provider.
SetError
(control, value);
1055
provider.
SetError
(control, string.Empty);
1064
Assert.Throws<ArgumentNullException>("control", () => provider.
SetError
(null, value));
1147
provider.
SetError
(control, error);
1229
provider.
SetError
(control1, "error");
1240
provider.
SetError
(control1, "Some error");
1253
provider.
SetError
(control1, "Some error");
1256
provider.
SetError
(control1, null);
1266
provider.
SetError
(control1, "Some error");
1269
provider.
SetError
(control1, string.Empty);
1279
provider.
SetError
(control1, "Some error");
1282
provider.
SetError
(control1, string.Empty);
1283
provider.
SetError
(control1, string.Empty);
1284
provider.
SetError
(control1, string.Empty);
1285
provider.
SetError
(control1, string.Empty);
1295
provider.
SetError
(control1, "Some error");
1296
provider.
SetError
(control1, "Some error");
1297
provider.
SetError
(control1, "Some error");
1298
provider.
SetError
(control1, "Some error");
WinFormsControlsTest (2)
ErrorProviderTest.cs (2)
18
errorProvider1.
SetError
(textBox1, "The length of the testbox is invalid!");
28
errorProvider2.
SetError
(textBox2, "The length of the testbox is invalid!");