Esempio n. 1
0
 private void TXTO_TextChanged(object sender, EventArgs e)
 {
     if (TXTO.Text == ("O"))
     {
         TXTO.BackColor = Color.Green;
         TXTU.Visible   = Visible;
         TXTU.Focus();
     }
     else
     {
         TXTO.BackColor = Color.Red;
         TXTO.SelectAll();
     }
 }
Esempio n. 2
0
 private void TXTU_TextChanged(object sender, EventArgs e)
 {
     if (TXTU.Text == ("U"))
     {
         TXTU.BackColor = Color.Green;
         this.Hide();
         MessageBox.Show("parabens");
         new Form2().Show();
     }
     else
     {
         TXTU.BackColor = Color.Red;
         TXTU.SelectAll();
     }
 }