I am using an error provider to validate a text box, my problem is the event is not being raised when I go to another field, why ?
Here is my code:
private void txtUserId_Validating(object sender, System.ComponentModel.CancelEventArgs e )
string error = null;
if ( this.txtUserId.Text.Length == 0 )
error = "The userid is a mandatory field, please enter a userid.";
e.Cancel = true;