Esempio n. 1
0
        //funcion llamada al momento de dar click en Usuario

        private void Usuario_btn_Click(object sender, EventArgs e)
        {
            // instancia al formulario de Registro_Usuario
            Registro_Usuario registro_Usuario = new Registro_Usuario();

            registro_Usuario.Show();
        }
Esempio n. 2
0
        private void Registro_btn_Click(object sender, EventArgs e)
        {
            string     cadena = "insert into Usuario(nombre_usu, apellido_usu, user_usu, password_usu) values('" + nombre_txt.Text + "', '" + apellido_txt.Text + "', '" + usuario_txt.Text + "', '" + pass_txt.Text + "')";
            SqlCommand sql    = new SqlCommand(cadena, conn);

            sql.ExecuteNonQuery();
            MessageBox.Show("Registro Guardado Correctamente");
            this.Close();
            Registro_Usuario registro_Usuario = new Registro_Usuario();

            registro_Usuario.Show();
        }