示例#1
0
        private void button8_Click(object sender, EventArgs e)
        {
            F_Ventas Form = new F_Ventas();

            this.Hide();

            VeriModText1 Form2 = new VeriModText1();

            Form2.Show();
        }
示例#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");
            }
        }