Hi, You can check this Code: void Txt_nameValidating(object sender, System.ComponentModel.CancelEventArgs e) { if(txt_name.Text==string.Empty) { errorProvider1.SetError(txt_name,"Please Enter Name"); errorProvider2.SetError(txt_name,""); errorProvider3.SetError(txt_name,""); } else { errorProvider1.SetError(txt_name,""); errorProvider2.SetError(txt_name,""); errorProvider3.SetError(txt_name,"Correct"); } } Thanks