private void txtLastName_TextChanged(object sender, EventArgs e) { try { btnNext.Visible = true; txtLastName.BackColor = HelperClass.ChangeBackColorName(txtLastName.Text); } catch (Exception) { txtLastName.BackColor = Color.LightCoral; btnNext.Visible = false; } }