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