示例#1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            LOGINFORM lf = new LOGINFORM();

            lf.Show();
            this.Hide();
        }
示例#2
0
        private void registerbtn_Click(object sender, EventArgs e)
        {
            string Name    = NUnametxtbox.Text;
            string pwd     = NUpasswordtxtbox.Text;
            string conpass = NUconpasswordtxtbox.Text;

            con.Open();
            SqlCommand cmd = new SqlCommand("insert into Login values('" + NUnametxtbox.Text + "','" + NUpasswordtxtbox.Text + "')", con);

            cmd.ExecuteNonQuery();
            con.Close();
            MessageBox.Show("INSERT SUCCESSFULLY....!");
            LOGINFORM lf = new LOGINFORM();

            lf.Show();
            this.Hide();
        }