private void txt_TeamScore_KeyPress(object sender, KeyPressEventArgs e) { if (nonNumberEntered == true) { e.Handled = true; } }