private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Test_Instruction li = new Test_Instruction();

            li.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            // labl1:
            con.Open();
            SqlCommand cmd = new SqlCommand("SELECT * from login where name='" + nam.Text + "' and password='******'", con);
            // SqlCommand cmd = new SqlCommand("select * from quiz_pro where id=" + idd + "", con);
            SqlDataReader dt = cmd.ExecuteReader();

            if (dt.Read())
            {
                int    user_id = dt.GetInt32(0);
                string name    = dt.GetString(1);

                //  Test_Instruction ti = new Test_Instruction( name);

                if (dt.GetString(1) == nam.Text && dt.GetString(2) == pswd.Text)
                {
                    if (dt.GetInt32(3) == 1)
                    {
                        this.Hide();
                        admin ad = new admin();
                        ad.Show();
                        // we r = new we();

                        // r.Show();
                    }

                    else
                    {
                        this.Hide();

                        Test_Instruction ts = new Test_Instruction();

                        Form1 fl = new Form1(user_id, name);
                        ts.Show();
                    }
                }

                con.Close();
            }
            else
            {
                MessageBox.Show("Name or password is not correct");
            }
        }