Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            F_Veri Form = new F_Veri();

            this.Hide();

            F_Ventas Form4 = new F_Ventas();

            Form4.Show();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string cod_correcto = "123";
            string cod          = this.textBox1.Text;

            if (cod == cod_correcto)
            {
                VeriModText1 Form = new VeriModText1();
                this.Hide();

                F_Ventas Form2 = new F_Ventas();
                Form2.Show();
                this.textBox1.Enabled = true;
            }
            else if (cod != cod_correcto)
            {
                MessageBox.Show("Código incorrecto");
            }
        }