Set upper always!!
private void txtEmpCode_TextChanged(object sender, EventArgs e) { txtEmpCode.CharacterCasing = CharacterCasing.Upper; }