Пример #1
0
 public void resetStuff()
 {
     num++;
     button1.Enabled    = button2.Enabled = button3.Enabled = false;
     button1.Text       = "Option 1";
     button2.Text       = "Option 2";
     button3.Text       = "Option 3";
     posedQuestion.Text = "";
     ActiveForm.Focus();
 }
Пример #2
0
        private void InputActivity_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == 13)
            {
                StartInputActivity_Click(sender, e);

                ActiveForm.Focus();

                e.Handled          = true;
                e.SuppressKeyPress = true;
            }
        }
Пример #3
0
 public void Bt_GotFocus(object sender, EventArgs e)
 {
     ActiveForm.Focus();
 }