How do you clear provider on a specific textbox and not all textsboxes. when I call errorProvider1.clear() It clears all the textboxs that contains the property of errorProvider1. I just want a specific textbox.
if((!calculaterValidation.IsDoubleNumberValid(billTotalTextBox.Text)) || (string.IsNullOrEmpty(billTotalTextBox.Text)))
{
errorProvider1.SetIconAlignment(billTotalTextBox, ErrorIconAlignment.MiddleRight);
errorProvider1.SetError(billTotalTextBox, "Please enter a valid number.");
}
else
{
//Clear validation of text box
}
C# standard error provider
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Sep 25, 2011, 7:32 AM EDT
David SmithRank #999 · 2K reputationPosted Sep 25, 2011, 9:18 PM EDT