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
}
Loading
VulpesPosted Sep 25, 2011, 11:32 AM
David SmithPosted Sep 26, 2011, 1:18 AM