예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            menu menu = new menu();

            menu.Show();

            Hide();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "admin" && textBox2.Text == "123")
            {
                menu menu = new menu();
                menu.Show();

                Hide();
            }
            else
            {
                contador++;
                MessageBox.Show("Verifique su cuenta o contraseña.\nIntento: " + contador);
            }

            if (contador == 3)
            {
                MessageBox.Show("Intentos superados, intente mas tarde...");
                button1.Enabled = false;
            }
        }