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